Failure on special case of overlapping activities
Created by: GeraldJansen
Hamster fails when inserting a new activity that spans the start time of an ongoing activity. In grafical mode the "Add earlier activity" window does not respond when you try to save the activity. In development mode:
[src]$ ./hamster-cli list
Start | End | Duration | Activity | Category
-----------------------------------------------
08:36 | | 0h 5min | xxx | Unsorted
-----------------------------------------------
[src]$ ./hamster-cli track yyy 08:30 08:40
Traceback (most recent call last):
File "./hamster-cli", line 414, in <module>
...
File "/d/gj/hamster/src/hamster/storage/db.py", line 483, in __solve_overlaps
if start_time < fact["start_time"] and end_time > fact["end_time"]:
TypeError: '>' not supported between instances of 'datetime.datetime' and 'NoneType'