Skip to content

Commit f58ba84

Browse files
committed
add 'allAttrib' earlier
1 parent 2dcce7b commit f58ba84

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ayon_api/_api_helpers/projects.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,9 @@ def _get_project_graphql_fields(
712712
fields.discard(field)
713713
add_all_attrib = True
714714

715+
if add_all_attrib:
716+
graphql_fields.add("allAttrib")
717+
715718
# NOTE 'config' in GraphQl is NOT the same as from REST api.
716719
# - At the moment of this comment there is missing 'productBaseTypes'.
717720
inters = fields & {
@@ -725,8 +728,6 @@ def _get_project_graphql_fields(
725728
remainders = fields - (inters | graphql_fields)
726729
if not remainders:
727730
graphql_fields |= inters
728-
if add_all_attrib:
729-
graphql_fields.add("allAttrib")
730731
return graphql_fields, ProjectFetchType.GraphQl
731732

732733
if must_use_graphql:

0 commit comments

Comments
 (0)