X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/a1e728afc06ed44ce2b4609b73dd8e743ef6bed8..75dea64c1fbf2464c489abf4611ea6952ed60f2d:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index 65679dc..491a374 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -159,6 +159,10 @@ class TaskFilter(object): def add_filter_param(self, key, value): key = key.replace('__', '.') + + # Replace the value with empty string, since that is the + # convention in TW for empty values + value = value if value is not None else '' self.filter_params.append('{0}:{1}'.format(key, value)) def get_filter_params(self):