From: Rob Golding Date: Mon, 10 Nov 2014 14:09:12 +0000 (+0000) Subject: Merge pull request #8 from tbabej/develop X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/9811f65b56e9bdb15722179e59c722de6713ffa2?hp=1294afe1f27fd6bf9561b2d1cc93199c1b2fa007 Merge pull request #8 from tbabej/develop TaskFilter: Use empty string for None searches --- 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):