Skip to content

Commit

Permalink
Merge pull request #11 from Sinaptik-AI/fix/project_list
Browse files Browse the repository at this point in the history
fix[projectList]: filtering with is statement not working
  • Loading branch information
ArslanSaleem authored Oct 1, 2024
2 parents 11d4af1 + be9db39 commit 37fcec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/repositories/project_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37fcec0

Please sign in to comment.