From 5c5b35a097608b63c3d54acf2f07d5cb00e85796 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 8 Aug 2015 20:00:00 +0200 Subject: [PATCH 1/1] backends: Add complete_task to the backend interface Marking task as 'done' needs to be implemented as a separate backend operation too. --- tasklib/backends.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasklib/backends.py b/tasklib/backends.py index 12a9234..c99d63f 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -38,6 +38,10 @@ class Backend(object): def stop_task(self, task): pass + @abc.abstractmethod + def complete_task(self, task): + pass + @abc.abstractmethod def sync(self): """Syncs the backend database with the taskd server""" -- 2.39.5