From 34cb6a7ef98c8e4c18e55587fa0ff74e4e2a2194 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 23 Jun 2020 13:53:14 +0100 Subject: [PATCH] Code style --- src/labthings/server/decorators.py | 2 +- src/labthings/server/representations.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/labthings/server/decorators.py b/src/labthings/server/decorators.py index efde5d38..70d816e9 100644 --- a/src/labthings/server/decorators.py +++ b/src/labthings/server/decorators.py @@ -43,7 +43,7 @@ "Tag", "tag", "doc_response", - "Semtype" + "Semtype", ] diff --git a/src/labthings/server/representations.py b/src/labthings/server/representations.py index 3944f99e..35580ce9 100644 --- a/src/labthings/server/representations.py +++ b/src/labthings/server/representations.py @@ -35,7 +35,9 @@ def output_json(data, code, headers=None): """Makes a Flask response with a JSON encoded body, using app JSON settings""" settings = current_app.config.get("LABTHINGS_JSON", {}) - encoder = current_app.config.get("LABTHINGS_JSON_ENCODER", {}) or LabThingsJSONEncoder + encoder = ( + current_app.config.get("LABTHINGS_JSON_ENCODER", {}) or LabThingsJSONEncoder + ) if current_app.debug: settings.setdefault("indent", 4)