From: Tomas Babej Date: Thu, 4 Dec 2014 20:37:34 +0000 (+0100) Subject: Add workaround for TW-1452 bug X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/b2f9a6b962ba9ef1fabd21cb0a5f2e799022e16a?ds=sidebyside;hp=--cc Add workaround for TW-1452 bug --- b2f9a6b962ba9ef1fabd21cb0a5f2e799022e16a diff --git a/tasklib/task.py b/tasklib/task.py index 491a374..810406e 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -163,7 +163,13 @@ class TaskFilter(object): # 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)) + + # If we are filtering by uuid:, do not use uuid keyword + # due to TW-1452 bug + if key == 'uuid': + self.filter_params.insert(0, value) + else: + self.filter_params.append('{0}:{1}'.format(key, value)) def get_filter_params(self): return [f for f in self.filter_params if f]