Reverted config initialisation behaviour
This commit is contained in:
parent
5264b04be4
commit
0182f18e33
1 changed files with 1 additions and 3 deletions
|
|
@ -32,8 +32,7 @@ class OpenflexureSettingsFile:
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
# Initialise basic config file with defaults if it doesn't exist
|
# Initialise basic config file with defaults if it doesn't exist
|
||||||
defaults_str = json.dumps(defaults, cls=JSONEncoder, indent=2, sort_keys=True)
|
initialise_file(self.path, populate=defaults)
|
||||||
initialise_file(self.path, populate=defaults_str)
|
|
||||||
|
|
||||||
def load(self) -> dict:
|
def load(self) -> dict:
|
||||||
"""
|
"""
|
||||||
|
|
@ -104,7 +103,6 @@ class JSONEncoder(flask.json.JSONEncoder):
|
||||||
return flask.json.JSONEncoder.default(self, o)
|
return flask.json.JSONEncoder.default(self, o)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# HANDLE BASIC LOADING AND SAVING OF SETTINGS FILES
|
# HANDLE BASIC LOADING AND SAVING OF SETTINGS FILES
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue