Skip to content

Commit

Permalink
Only return series where relays have been reported
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Oct 6, 2024
1 parent cb410d2 commit 5014e36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opensensor/collection_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def get_relay_board_pipeline(
if end_date is None:
end_date = datetime.utcnow()
match_clause = get_initial_match_clause(device_ids, device_name, start_date, end_date)
match_clause["relays"] = {"$exists": True}

# The MongoDB aggregation pipeline for Relay Board data
pipeline = [
Expand Down

0 comments on commit 5014e36

Please sign in to comment.