Skip to content

Commit 4e40700

Browse files
authored
fix: api.today: allow sort for tasks with same today_index but with and without start_date
see #146
1 parent f17e2e4 commit 4e40700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

things/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def today(**kwargs):
524524
*unconfirmed_scheduled_tasks,
525525
*unconfirmed_overdue_tasks,
526526
]
527-
result.sort(key=lambda task: (task["today_index"], task["start_date"]))
527+
result.sort(key=lambda task: (task["today_index"], task["start_date"] or ""))
528528

529529
return result
530530

0 commit comments

Comments
 (0)