diff --git a/flaskinventory/flaskdgraph/client.py b/flaskinventory/flaskdgraph/client.py index 7c5b0c5e..e148f7e1 100644 --- a/flaskinventory/flaskdgraph/client.py +++ b/flaskinventory/flaskdgraph/client.py @@ -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} }} }}'''