diff options
author | jaseg <git@jaseg.net> | 2019-09-29 11:39:46 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2019-09-29 11:39:46 +0200 |
commit | 1a6f2a9caa27bded4551aead34883e7fcdc92d2e (patch) | |
tree | 0b2665324ed8ffaad603dbb2c5d17247108d21e0 /webapp/job_queue.py | |
parent | 3acdfe5c194082192f43903c6296981c3c27c1b0 (diff) | |
download | pogojig-1a6f2a9caa27bded4551aead34883e7fcdc92d2e.tar.gz pogojig-1a6f2a9caa27bded4551aead34883e7fcdc92d2e.tar.bz2 pogojig-1a6f2a9caa27bded4551aead34883e7fcdc92d2e.zip |
Jigerator frontend mostly working
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,)) |