We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 402a753 + dfb1d0d commit 0e4093bCopy full SHA for 0e4093b
ayon_api/server_api.py
@@ -4646,10 +4646,14 @@ def get_projects(
4646
return
4647
4648
self._prepare_fields("project", fields, own_attributes)
4649
+ if active is not None:
4650
+ fields.add("active")
4651
4652
query = projects_graphql_query(fields)
4653
for parsed_data in query.continuous_query(self):
4654
for project in parsed_data["projects"]:
4655
+ if active is not None and active is not project["active"]:
4656
+ continue
4657
if own_attributes:
4658
fill_own_attribs(project)
4659
yield project
0 commit comments