Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jtc42 committed Jun 23, 2020
1 parent 0541dc8 commit 34cb6a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/labthings/server/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"Tag",
"tag",
"doc_response",
"Semtype"
"Semtype",
]


Expand Down
4 changes: 3 additions & 1 deletion src/labthings/server/representations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 34cb6a7

Please sign in to comment.