From 41a8c57e0a21b1284e5ba41428364984e37926d0 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 26 Nov 2019 16:21:17 +0000 Subject: [PATCH] Fixed broken scan representation --- 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 fe6c2202..877269ff 100644 --- a/openflexure_microscope/api/v2/blueprints/tasks.py +++ b/openflexure_microscope/api/v2/blueprints/tasks.py @@ -124,7 +124,7 @@ class TaskAPI(MethodView): return abort(404) # 404 Not Found # Return task state - return jsonify(task.state) + return jsonify(task) def delete(self, task_id): """