X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/62954b5c6c24511b980733721c9ed447702b4962..2fbfb2cbb3473110f7464aa227704535a31cd977:/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]