X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/a1e728afc06ed44ce2b4609b73dd8e743ef6bed8..9811f65b56e9bdb15722179e59c722de6713ffa2:/tasklib/task.py?ds=inline 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):