From 9e404415aecec239da9a9eb1394816f2ab86cefd Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 13 Dec 2019 15:06:27 +0000 Subject: [PATCH] Actually fixed task termination --- openflexure_microscope/api/v2/blueprints/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/v2/blueprints/tasks.py b/openflexure_microscope/api/v2/blueprints/tasks.py index 123ececa..cf841bb2 100644 --- a/openflexure_microscope/api/v2/blueprints/tasks.py +++ b/openflexure_microscope/api/v2/blueprints/tasks.py @@ -138,7 +138,7 @@ class TaskAPI(MethodView): """ try: - task = tasks[task_id] + task = tasks.tasks()[task_id] except KeyError: return abort(404) # 404 Not Found