From b2f9a6b962ba9ef1fabd21cb0a5f2e799022e16a Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 4 Dec 2014 21:37:34 +0100 Subject: [PATCH 1/1] Add workaround for TW-1452 bug --- tasklib/task.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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] -- 2.39.5