Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ayon_api/server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4646,10 +4646,14 @@ def get_projects(
return

self._prepare_fields("project", fields, own_attributes)
if active is not None:
fields.add("active")

query = projects_graphql_query(fields)
for parsed_data in query.continuous_query(self):
for project in parsed_data["projects"]:
if active is not None and active is not project["active"]:
continue
if own_attributes:
fill_own_attribs(project)
yield project
Expand Down