From be9db39d58462633c1c801de4a52109ce9d8b112 Mon Sep 17 00:00:00 2001 From: ArslanSaleem Date: Tue, 1 Oct 2024 17:05:28 +0200 Subject: [PATCH] fix[projectList]: filtering with is statement not working --- backend/app/repositories/project_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/repositories/project_repository.py b/backend/app/repositories/project_repository.py index b90d787..f2c9bd4 100644 --- a/backend/app/repositories/project_repository.py +++ b/backend/app/repositories/project_repository.py @@ -26,7 +26,7 @@ def get_projects(db: Session, page: int = 1, page_size: int = 20): models.Project, func.count(models.Asset.id).label("asset_count"), # Count the assets ) - .filter(models.Project.deleted_at is None) + .filter(models.Project.deleted_at == None) .outerjoin(models.Asset, models.Project.id == models.Asset.project_id) .group_by(models.Project.id) .offset((page - 1) * page_size)