Improved flake8 results

This commit is contained in:
Joel Collins 2019-05-24 16:32:20 +01:00
parent fb606b189d
commit 3b9ef670fe
24 changed files with 256 additions and 126 deletions

View file

@ -35,7 +35,7 @@ class ZoomAPI(MicroscopeView):
Accept: application/json
{
"zoom_value": 2.5,
"zoom_value": 2.5,
}
:>header Accept: application/json
@ -83,8 +83,8 @@ class OverlayAPI(MicroscopeView):
Accept: application/json
{
"text": "2019/01/15 14:48",
"size": 50
"text": "2019/01/15 14:48",
"size": 50
}
:>header Accept: application/json
@ -92,7 +92,7 @@ class OverlayAPI(MicroscopeView):
:<header Content-Type: application/json
:status 200: preview started/stopped
"""
payload = JsonPayload(request)
text = payload.param('text', default="", convert=str)
size = payload.param('size', default=50, convert=int)