Blackened
This commit is contained in:
parent
ffc944fe99
commit
6df7fe9405
16 changed files with 22 additions and 64 deletions
|
|
@ -76,7 +76,7 @@ class ActionsView(View):
|
|||
"self": {
|
||||
"href": current_labthing().url_for(action["view_class"]),
|
||||
"mimetype": "application/json",
|
||||
**description_from_view(action["view_class"])
|
||||
**description_from_view(action["view_class"]),
|
||||
}
|
||||
},
|
||||
"rule": action["rule"],
|
||||
|
|
|
|||
|
|
@ -132,10 +132,7 @@ class RAMCaptureAPI(View):
|
|||
|
||||
stream.seek(0)
|
||||
|
||||
return send_file(
|
||||
io.BytesIO(stream.getbuffer()),
|
||||
mimetype="image/jpeg"
|
||||
)
|
||||
return send_file(io.BytesIO(stream.getbuffer()), mimetype="image/jpeg")
|
||||
|
||||
|
||||
@ThingAction
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
from openflexure_microscope.api.utilities import JsonResponse
|
||||
from labthings.server.view import View
|
||||
from labthings.server.find import find_component
|
||||
from labthings.server.decorators import (
|
||||
use_args,
|
||||
marshal_with,
|
||||
doc,
|
||||
ThingAction,
|
||||
)
|
||||
from labthings.server.decorators import use_args, marshal_with, doc, ThingAction
|
||||
from labthings.server import fields
|
||||
|
||||
from openflexure_microscope.utilities import axes_to_array, filter_dict
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@ import subprocess
|
|||
import os
|
||||
from sys import platform
|
||||
|
||||
from labthings.server.decorators import (
|
||||
ThingAction,
|
||||
doc_response,
|
||||
)
|
||||
from labthings.server.decorators import ThingAction, doc_response
|
||||
|
||||
|
||||
def is_raspberrypi(raise_on_errors=False):
|
||||
|
|
|
|||
|
|
@ -6,9 +6,7 @@ from openflexure_microscope.api.utilities import get_bool, JsonResponse
|
|||
from labthings.server.schema import Schema
|
||||
from labthings.server import fields
|
||||
from labthings.server.view import View
|
||||
from labthings.server.utilities import (
|
||||
description_from_view,
|
||||
)
|
||||
from labthings.server.utilities import description_from_view
|
||||
from labthings.server.decorators import marshal_with, doc_response, Tag, ThingProperty
|
||||
|
||||
from labthings.server.find import find_component
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
from openflexure_microscope.api.utilities import JsonResponse
|
||||
|
||||
from labthings.core.utilities import (
|
||||
get_by_path,
|
||||
set_by_path,
|
||||
create_from_path,
|
||||
)
|
||||
from labthings.core.utilities import get_by_path, set_by_path, create_from_path
|
||||
|
||||
from labthings.server.find import find_component
|
||||
from labthings.server.view import View
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
from openflexure_microscope.api.utilities import gen, JsonResponse
|
||||
|
||||
from labthings.core.utilities import (
|
||||
get_by_path,
|
||||
set_by_path,
|
||||
create_from_path,
|
||||
)
|
||||
from labthings.core.utilities import get_by_path, set_by_path, create_from_path
|
||||
|
||||
from labthings.server.find import find_component
|
||||
from labthings.server.view import View
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue