X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/62954b5c6c24511b980733721c9ed447702b4962..55f248ccc3e7c132258f396583ba96effa3ff4a0:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index 330491f..bb3fa53 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -284,7 +284,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]