things.py icon indicating copy to clipboard operation
things.py copied to clipboard

today() fails if today contains todo with start_date == None

Open bkleinen opened this issue 1 year ago • 1 comments

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 avatar Mar 20 '24 10:03 bkleinen

@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.

mikez avatar May 07 '24 18:05 mikez

@bkleinen See #120 (/cc @AlexanderWillner)

mikez avatar Aug 17 '24 11:08 mikez