Jigerator frontend mostly working

This commit is contained in:
jaseg 2019-09-29 11:39:46 +02:00
parent 3acdfe5c19
commit 1a6f2a9caa
35 changed files with 872 additions and 11 deletions

View file

@ -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,))