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

Commit

Permalink
Merge branch 'main' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwunderbar666 committed Aug 24, 2022
2 parents f4fab21 + c620ad6 commit 2e691a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flaskinventory/view/dgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 2e691a5

Please sign in to comment.