Commit b1a38170 authored by Joel Collins's avatar Joel Collins
Browse files

Fixed RecalibrateAPIView POST task

parent dd82528d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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