From 1a6f2a9caa27bded4551aead34883e7fcdc92d2e Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 29 Sep 2019 11:39:46 +0200 Subject: Jigerator frontend mostly working --- webapp/job_queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/job_queue.py') diff --git a/webapp/job_queue.py b/webapp/job_queue.py index 62ba398..333e450 100644 --- a/webapp/job_queue.py +++ b/webapp/job_queue.py @@ -71,7 +71,7 @@ class Job(dict): with self._db as conn: conn.execute('UPDATE jobs SET finished=datetime("now"), result=? WHERE id=?', (self.result, self.id,)) - def abort(self, job_id): - with self.db as conn: + def abort(self): + with self._db as conn: conn.execute('UPDATE jobs SET aborted=datetime("now") WHERE id=?', (self.id,)) -- cgit