diff options
Diffstat (limited to 'webapp/job_queue.py')
-rw-r--r-- | webapp/job_queue.py | 4 |
1 files changed, 2 insertions, 2 deletions
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,)) |