Skip to content

Commit 0e4093b

Browse files
authored
Merge branch 'develop' into enhancemet/thumbnail-methods-cleanup
2 parents 402a753 + dfb1d0d commit 0e4093b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ayon_api/server_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4646,10 +4646,14 @@ def get_projects(
46464646
return
46474647

46484648
self._prepare_fields("project", fields, own_attributes)
4649+
if active is not None:
4650+
fields.add("active")
46494651

46504652
query = projects_graphql_query(fields)
46514653
for parsed_data in query.continuous_query(self):
46524654
for project in parsed_data["projects"]:
4655+
if active is not None and active is not project["active"]:
4656+
continue
46534657
if own_attributes:
46544658
fill_own_attribs(project)
46554659
yield project

0 commit comments

Comments
 (0)