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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwunderbar666 committed Jul 13, 2022
1 parent 2cee398 commit f4fdbff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flaskinventory/flaskdgraph/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def query(self, query_string, variables=None):
data = json.loads(res.json, object_hook=self.datetime_hook)
return data

def get_uid(self, field, value):
def get_uid(self, field: str, value: str) -> str:
value = str(value).strip()
query_string = f'''
query quicksearch($value: string)
{{ q(func: eq({field}, $value)) {{ uid {field} }} }}'''
Expand Down

0 comments on commit f4fdbff

Please sign in to comment.