From: Tomas Babej Date: Thu, 6 Aug 2015 21:21:36 +0000 (+0200) Subject: TaskFilter: Remove workaround for TW-1479 if using TW 2.4.5 and above X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/902229c07a245bd0f27317e74916643a0dc39267 TaskFilter: Remove workaround for TW-1479 if using TW 2.4.5 and above --- diff --git a/tasklib/task.py b/tasklib/task.py index 35fc2b7..0451fb0 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -826,8 +826,10 @@ class TaskFilter(SerializingObject): # We enforce equality match by using 'is' (or 'none') modifier # Without using this syntax, filter fails due to TW-1479 - modifier = '.is' if value else '.none' - key = key + modifier if '.' not in key else key + # which is, however, fixed in 2.4.5 + if self.warrior.version < six.text_type(u'2.5.0'): + modifier = '.is' if value else '.none' + key = key + modifier if '.' not in key else key self.filter_params.append(six.u("{0}:{1}").format(key, value))