Fixed issue #42
This commit is contained in:
parent
bf829aae46
commit
1bbe234749
2 changed files with 4 additions and 4 deletions
|
|
@ -60,7 +60,7 @@ def json_map(data, clean_keys=True):
|
|||
"""
|
||||
|
||||
# Do not overwrite original data dictionary
|
||||
d = copy.copy(data)
|
||||
d = copy.deepcopy(data)
|
||||
|
||||
# If we're cleaning up unsuitable keys
|
||||
if clean_keys:
|
||||
|
|
|
|||
|
|
@ -231,14 +231,14 @@ class Microscope(object):
|
|||
|
||||
return self.rc.read(json_safe=json_safe)
|
||||
|
||||
def save_config(self):
|
||||
def save_config(self, backup: bool = True):
|
||||
"""
|
||||
Saves the current runtime-config back to disk
|
||||
"""
|
||||
# Get any changed device settings
|
||||
self.read_config()
|
||||
self.read_config(json_safe=False)
|
||||
# Save to disk
|
||||
self.rc.save()
|
||||
self.rc.save(backup=backup)
|
||||
|
||||
@property
|
||||
def config(self) -> dict:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue