Fixed malformed JSONIFY task responses
This commit is contained in:
parent
10bafe1281
commit
edc5e7c241
3 changed files with 4 additions and 4 deletions
|
|
@ -23,4 +23,4 @@ class AutofocusAPI(MicroscopeViewPlugin):
|
||||||
task = self.microscope.task.start(self.plugin.autofocus, dz)
|
task = self.microscope.task.start(self.plugin.autofocus, dz)
|
||||||
|
|
||||||
# return a handle on the autofocus task
|
# return a handle on the autofocus task
|
||||||
return jsonify(task.state, 202)
|
return jsonify(task.state), 202
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class RecalibrateAPIView(MicroscopeViewPlugin):
|
||||||
task = self.microscope.task.start(self.plugin.recalibrate)
|
task = self.microscope.task.start(self.plugin.recalibrate)
|
||||||
|
|
||||||
# Return a handle on the autofocus task
|
# Return a handle on the autofocus task
|
||||||
return jsonify(task.state, 202)
|
return jsonify(task.state), 202
|
||||||
|
|
||||||
|
|
||||||
class Plugin(MicroscopePlugin):
|
class Plugin(MicroscopePlugin):
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ class TileScanAPI(MicroscopeViewPlugin):
|
||||||
)
|
)
|
||||||
|
|
||||||
# return a handle on the autofocus task
|
# return a handle on the autofocus task
|
||||||
return jsonify(task.state, 202)
|
return jsonify(task.state), 202
|
||||||
|
|
||||||
|
|
||||||
class ZStackAPI(MicroscopeViewPlugin):
|
class ZStackAPI(MicroscopeViewPlugin):
|
||||||
|
|
@ -88,4 +88,4 @@ class ZStackAPI(MicroscopeViewPlugin):
|
||||||
)
|
)
|
||||||
|
|
||||||
# return a handle on the autofocus task
|
# return a handle on the autofocus task
|
||||||
return jsonify(task.state, 202)
|
return jsonify(task.state), 202
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue