From 8087e4d445ee123ab2067ce640c8f6ca1595a92e Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 31 Jan 2019 13:34:14 +0000 Subject: [PATCH] Updated to use apply_config and read_config instead of setters and getters --- openflexure_microscope/api/v1/blueprints/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/api/v1/blueprints/base.py b/openflexure_microscope/api/v1/blueprints/base.py index 1a6353f1..bee8c37b 100644 --- a/openflexure_microscope/api/v1/blueprints/base.py +++ b/openflexure_microscope/api/v1/blueprints/base.py @@ -136,7 +136,7 @@ class ConfigAPI(MicroscopeView): :>header Content-Type: application/json :status 200: state available """ - return jsonify(self.microscope.config) + return jsonify(self.microscope.read_config()) def post(self): """ @@ -172,7 +172,7 @@ class ConfigAPI(MicroscopeView): print(payload.json) - self.microscope.config = payload.json + self.microscope.apply_config(payload.json) return jsonify(self.microscope.config)