From: Tomas Babej Date: Mon, 23 May 2016 13:35:07 +0000 (+0200) Subject: Task: Add recurring property X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/fcd3eb3f048c5d722757429345d1b99b343a43f6?hp=--cc Task: Add recurring property --- fcd3eb3f048c5d722757429345d1b99b343a43f6 diff --git a/tasklib/task.py b/tasklib/task.py index 6e3e432..7c4cdff 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -309,6 +309,10 @@ class Task(TaskResource): def pending(self): return self['status'] == six.text_type('pending') + @property + def recurring(self): + return self['status'] == six.text_type('recurring') + @property def active(self): return self['start'] is not None