Blackened files
This commit is contained in:
parent
be5ddb76ae
commit
4e7606aa0c
24 changed files with 200 additions and 120 deletions
|
|
@ -39,10 +39,8 @@ class SnapshotAPI(MicroscopeView):
|
|||
# Restart stream worker thread
|
||||
self.microscope.camera.start_worker()
|
||||
|
||||
return Response(
|
||||
self.microscope.camera.get_frame(),
|
||||
mimetype="image/jpeg",
|
||||
)
|
||||
return Response(self.microscope.camera.get_frame(), mimetype="image/jpeg")
|
||||
|
||||
|
||||
class StateAPI(MicroscopeView):
|
||||
def get(self):
|
||||
|
|
@ -240,7 +238,8 @@ def construct_blueprint(microscope_obj):
|
|||
)
|
||||
|
||||
blueprint.add_url_rule(
|
||||
"/snapshot", view_func=SnapshotAPI.as_view("snapshot", microscope=microscope_obj)
|
||||
"/snapshot",
|
||||
view_func=SnapshotAPI.as_view("snapshot", microscope=microscope_obj),
|
||||
)
|
||||
|
||||
blueprint.add_url_rule(
|
||||
|
|
|
|||
|
|
@ -134,12 +134,8 @@ def construct_blueprint(microscope_obj):
|
|||
|
||||
blueprint = Blueprint("task_blueprint", __name__)
|
||||
|
||||
blueprint.add_url_rule(
|
||||
"/", view_func=TaskListAPI.as_view("task_list")
|
||||
)
|
||||
blueprint.add_url_rule("/", view_func=TaskListAPI.as_view("task_list"))
|
||||
|
||||
blueprint.add_url_rule(
|
||||
"/<task_id>/", view_func=TaskAPI.as_view("task")
|
||||
)
|
||||
blueprint.add_url_rule("/<task_id>/", view_func=TaskAPI.as_view("task"))
|
||||
|
||||
return blueprint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue