X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/fcd3eb3f048c5d722757429345d1b99b343a43f6..0e45c41ab8685abd3d1954912d8bd6f8fdf6637a:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index 7c4cdff..c7c9e6d 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -15,6 +15,7 @@ PENDING = 'pending' COMPLETED = 'completed' DELETED = 'deleted' WAITING = 'waiting' +RECURRING = 'recurring' logger = logging.getLogger(__name__) @@ -522,6 +523,9 @@ class TaskQuerySet(object): def waiting(self): return self.filter(status=WAITING) + def recurring(self): + return self.filter(status=RECURRING) + def filter(self, *args, **kwargs): """ Returns a new TaskQuerySet with the given filters added.