Fixed RecalibrateAPIView POST task

This commit is contained in:
Joel Collins 2019-11-11 10:44:57 +00:00
parent dd82528d78
commit b1a38170a1

View file

@ -15,7 +15,7 @@ from .recalibrate_utils import recalibrate_camera, auto_expose_and_freeze_settin
class RecalibrateAPIView(MicroscopeViewPlugin):
def post(self):
logging.info("Starting microscope recalibration...")
task = taskify(self.plugin.recalibrate)
task = taskify(self.plugin.recalibrate)()
# Return a handle on the autofocus task
return jsonify(task.state), 202