The weekly export calls list_tasks(tasks, status="pending") to build the open-work report. Since the last refactor it returns every task, so completed items are reported as open.
The weekly export calls list_tasks(tasks, status="pending") to build the open-work report. Since the last refactor it returns every task, so completed items are reported as open.
pending tasks and one completed task.list_tasks(tasks, status="pending").list_tasks(tasks, status="pending") returns only pending tasks.list_tasks(tasks, status="completed") returns only completed tasks.list_tasks(tasks) with no status returns every task.Every call returns the full list.
status argument filters the result to that status.status keep returning every task, in the original order.Run the visible suite with pytest tests/visible.
Visible test command
pytest tests/visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
fix-task-filtering-python
Changes under src/ are evaluated.