From e7f2328fc5bee574b6fc51120e1e5026042f5e54 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 12 Jan 2015 14:18:43 -0800 Subject: [PATCH] Fix 'not empty' filter for string-type UDAs, #181 --- bugwarrior/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bugwarrior/db.py b/bugwarrior/db.py index c8e0a9d3e..fce350097 100644 --- a/bugwarrior/db.py +++ b/bugwarrior/db.py @@ -102,7 +102,7 @@ def get_managed_task_uuids(tw, key_list, legacy_matching): expected_task_ids = set([]) for keys in key_list.values(): tasks = tw.filter_tasks({ - 'and': [('%s.not' % key, '') for key in keys], + 'and': [('%s.any' % key, None) for key in keys], 'or': [ ('status', 'pending'), ('status', 'waiting'),