Skip to content

Commit 32beec1

Browse files
committed
Try to get sampling of VPD working
1 parent ff6457e commit 32beec1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opensensor/collection_apis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def get_vpd_pipeline(
241241
}
242242
}
243243
},
244+
{"$group": {"_id": "$group", "doc": {"$first": "$$ROOT"}}},
245+
{"$replaceRoot": {"newRoot": "$doc"}},
244246
{"$project": project_projection},
245247
{"$sort": {"timestamp": 1}},
246248
]

0 commit comments

Comments
 (0)