Skip to content

Commit

Permalink
allow and in timeseries metadata query
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupka authored and jthurner committed Sep 6, 2024
1 parent 3ea9e2a commit 0f5b7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandahub/lib/PandaHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ def get_timeseries_metadata(
if key == "timestamp_range":
continue
filter_value = filter_document[key]
if type(filter_value) == list:
if isinstance(filter_value, list) and key not in ["$or", "$and"]:
match_filter.append({key: {"$in": filter_value}})
else:
match_filter.append({key: filter_value})
Expand Down

0 comments on commit 0f5b7be

Please sign in to comment.