GothenburgBitFactory / tasklib

A Python library for interacting with taskwarrior databases.
http://tasklib.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
147 stars 28 forks source link

no way to use empty strings to create eg `wait.none:` filter #118

Open smemsh opened 2 years ago

smemsh commented 2 years ago

use of empty string, eg passing to filter method like: .filter(wait__any='') will fail:

(Pdb) p normalize_func
<bound method SerializingObject.normalize_wait of
<tasklib.filters.TaskWarriorFilter object at 0x7f2428eaf250>>
(Pdb) p normalize_func('')
*** tasklib.backends.TaskWarriorException: No expression to evaluate.

this surely affects other things than wait because each one is normalized and deserialized differently. but wait is the one I want to use it for at the moment...