Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwunderbar666 committed Aug 25, 2022
1 parent eb3b399 commit e1fff83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flaskinventory/flaskdgraph/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def build_query_string(query: dict, public=True) -> str:
filters = " AND ".join(filters)

# make sure predicates are always queried
if "country" not in cleaned_query.keys():
if "country" not in _cleaned_query:
query_parts.append('country { uid name unique_name }')
if "channel" not in cleaned_query.keys():
if "channel" not in _cleaned_query:
query_parts.append('channel { uid name unique_name }')

query_parts = list(set(query_parts))
Expand Down

0 comments on commit e1fff83

Please sign in to comment.