From: Tomas Babej Date: Sat, 3 Jan 2015 22:04:36 +0000 (+0100) Subject: TaskFilter: Enforce exact match when building filter X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/30d3b8550bb23a98b899e636366471e1bbed08e7?ds=sidebyside;hp=-c TaskFilter: Enforce exact match when building filter --- 30d3b8550bb23a98b899e636366471e1bbed08e7 diff --git a/tasklib/task.py b/tasklib/task.py index 01a0bcc..b1af4f7 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -433,7 +433,9 @@ class TaskFilter(SerializingObject): if key == 'uuid': self.filter_params.insert(0, value) else: - self.filter_params.append("{0}:'{1}'".format(key, value)) + # We enforce equality match by using is keyword + # Also, without using this syntax, filter fails due to TW-1479 + self.filter_params.append("{0}.is:'{1}'".format(key, value)) def get_filter_params(self): return [f for f in self.filter_params if f]