Skip to content

Commit 5014e36

Browse files
committed
Only return series where relays have been reported
1 parent cb410d2 commit 5014e36

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

opensensor/collection_apis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ def get_relay_board_pipeline(
402402
if end_date is None:
403403
end_date = datetime.utcnow()
404404
match_clause = get_initial_match_clause(device_ids, device_name, start_date, end_date)
405+
match_clause["relays"] = {"$exists": True}
405406

406407
# The MongoDB aggregation pipeline for Relay Board data
407408
pipeline = [

0 commit comments

Comments
 (0)