From 03fa1e8ebe90cc8d6cda283b3498f2fe691fe5b9 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 10 Nov 2014 01:10:01 +0100 Subject: [PATCH 1/1] TaskFilter: Use empty string for None searches --- tasklib/task.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- 2.39.5