From c8c66803e52df93a22ebdb9fe889f43502bc170a Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 21 Jul 2020 11:57:22 +0100 Subject: [PATCH] Updated setting LabThings JSON encoder --- openflexure_microscope/api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index be2d5b38..b37642a3 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -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