]> 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:

Fix bug in get_tasks filtering
authorRob Golding <rob@robgolding.com>
Wed, 10 Apr 2013 19:30:35 +0000 (20:30 +0100)
committerRob Golding <rob@robgolding.com>
Wed, 10 Apr 2013 19:30:35 +0000 (20:30 +0100)
tasklib/task.py

index 5e2b71b66a48d4b87e6ad8c27ccbb932bb76ace4..a220264f79b0203d773902628afdb3fe9ce893d2 100644 (file)
@@ -81,7 +81,7 @@ class TaskWarrior(object):
         return '{0}:{1}'.format(key, val)
 
     def get_tasks(self, **filter_kwargs):
-        filters = self.DEFAULT_FILTERS
+        filters = dict(self.DEFAULT_FILTERS)
         filters.update(filter_kwargs)
         filter_commands = ' '.join(map(self._format_filter_kwarg,
                                        filters.items()))