Update optional-requirements

Bugfix with serializing tasks
Bugfix order of tasks (id was used instead of task_id)
Code cosmetics
This commit is contained in:
Ozzie Isaacs
2022-04-23 20:03:59 +02:00
parent 2f5b9e41ac
commit 069dc2766f
8 changed files with 79 additions and 70 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ class WorkerThread(threading.Thread):
def end_task(self, task_id):
ins = self.get_instance()
for __, __, __, task in ins.tasks:
for __, __, __, task, __ in ins.tasks:
if str(task.id) == str(task_id) and task.is_cancellable:
task.stat = STAT_CANCELLED if task.stat == STAT_WAITING else STAT_ENDED