From fcd3eb3f048c5d722757429345d1b99b343a43f6 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 23 May 2016 15:35:07 +0200 Subject: [PATCH] Task: Add recurring property --- tasklib/task.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5