Skip to content

Commit 398afbf

Browse files
committed
Cast temp to float
1 parent 640a0d1 commit 398afbf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

opensensor/collection_apis.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ def get_vpd_pipeline(
188188
):
189189
sampling_interval = timedelta(minutes=resolution)
190190
match_clause = get_initial_match_clause(device_ids, device_name, start_date, end_date)
191-
project_projection = _get_project_projection(VPD)
192-
191+
project_projection = {
192+
"_id": False,
193+
"timestamp": "$timestamp",
194+
}
193195
# We ensure both temperature and humidity exist for the calculation of VPD
194196
match_clause["temp"] = {"$exists": True}
195197
match_clause["rh"] = {"$exists": True}

0 commit comments

Comments
 (0)