From 1224daac13a277bb585f18080b1dd1ead5ad42e2 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 13 Dec 2019 15:03:59 +0000 Subject: [PATCH] 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 877269ff..123ececa 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_representation()[task_id] + task = tasks[task_id] except KeyError: return abort(404) # 404 Not Found