]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

TaskFilter: Remove workaround for TW-1479 if using TW 2.4.5 and above
authorTomas Babej <tomasbabej@gmail.com>
Thu, 6 Aug 2015 21:21:36 +0000 (23:21 +0200)
committerTomas Babej <tomasbabej@gmail.com>
Thu, 6 Aug 2015 21:21:36 +0000 (23:21 +0200)
tasklib/task.py

index 35fc2b710c7d99fde6cd2397a02fbe442aa2a0ec..0451fb03ce4575fe6ae2a7e80993cd300e44b4fd 100644 (file)
@@ -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))