Skip to content

Commit 72a5466

Browse files
authored
Update task_repository.py
1 parent 7f4aaa0 commit 72a5466

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

todo/repositories/task_repository.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def _build_status_filter(cls, status_filter: str = None) -> dict:
2222
2323
"""
2424
if status_filter:
25+
if status_filter == TaskStatus.DONE.value:
26+
return {} # No status filtering, include all tasks
2527
return {"status": status_filter}
2628
else:
2729
return {"status": {"$ne": TaskStatus.DONE.value}}

0 commit comments

Comments
 (0)