Skip to content

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

Open
@smemsh

Description

@smemsh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions