Updated setting LabThings JSON encoder

This commit is contained in:
Joel Collins 2020-07-21 11:57:22 +01:00
parent 9f61935cf4
commit c8c66803e5

View file

@ -97,7 +97,7 @@ app, labthing = create_app(
cors = CORS(app)
# Use custom JSON encoder
app.config['LABTHINGS_JSON_ENCODER'] = JSONEncoder
labthing.json_encoder = JSONEncoder
app.json_encoder = JSONEncoder
# Attach lab devices