things.py
things.py copied to clipboard
today() fails if today contains todo with start_date == None
To Reproduce Steps to reproduce the behavior:
see title.
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/things/api.py", line 526, in today result.sort(key=lambda task: (task["today_index"], task["start_date"])) TypeError: '<' not supported between instances of 'NoneType' and 'str'
Expected behavior
not failing :)
will provide pr for fix.
@bkleinen Thanks for the issue and PR! :)
I'm not able to reproduce this. How can I create a todo in today with start_date == None? All my attempts always set a start_date.
@bkleinen See #120 (/cc @AlexanderWillner)