Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smemsh opened this issue Sep 17, 2022 · 0 comments · May be fixed by #119
Open

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

smemsh opened this issue Sep 17, 2022 · 0 comments · May be fixed by #119

Comments

@smemsh
Copy link

smemsh commented Sep 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant