diff --git a/flaskinventory/view/dgraph.py b/flaskinventory/view/dgraph.py index 37552091..7b4b9a20 100644 --- a/flaskinventory/view/dgraph.py +++ b/flaskinventory/view/dgraph.py @@ -29,7 +29,7 @@ def get_entry(unique_name: str = None, uid: str = None, dgraph_type: str = None) else: query_func += f'@filter(has(dgraph.type))' - query_fields = '''{ uid dgraph.type expand(_all_) (orderasc: unique_name) { uid unique_name name entry_review_status user_displayname authors @facets title channel { name unique_name } }''' + query_fields = '''{ uid dgraph.type expand(_all_) { uid unique_name name entry_review_status user_displayname authors @facets title channel { name unique_name } }''' if dgraph_type == 'Source': query_fields += '''published_by: ~publishes @facets @filter(type("Organization")) (orderasc: unique_name) { name unique_name uid entry_review_status }