From 32e5612f3a87503835225cf48fd4ccfea95f0a82 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 7 Apr 2025 16:40:34 +0200 Subject: [PATCH] fix active filtering --- ayon_api/server_api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ayon_api/server_api.py b/ayon_api/server_api.py index 5b3631757..87f939e45 100644 --- a/ayon_api/server_api.py +++ b/ayon_api/server_api.py @@ -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