From c80551ec9c0e6ce2de86081193fef69cba16f5f7 Mon Sep 17 00:00:00 2001 From: Dinesh <97143739+dinesh-aot@users.noreply.github.com> Date: Mon, 6 May 2024 15:34:31 -0700 Subject: [PATCH] Project list (#2205) * workstaff issue * project insights active --- epictrack-api/src/api/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epictrack-api/src/api/models/project.py b/epictrack-api/src/api/models/project.py index 117892c51..0ba06e1e8 100644 --- a/epictrack-api/src/api/models/project.py +++ b/epictrack-api/src/api/models/project.py @@ -78,7 +78,7 @@ def find_all_projects(cls, with_works=False, is_active=None): if with_works: query = query.filter(cls.works.any()) if is_active is not None: - query = query.filter(cls.is_active.is_(False)) + query = query.filter(cls.is_active.is_(is_active)) return query.filter(cls.is_deleted.is_(False)).all() @classmethod