mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 23:58:33 +02:00
lala
This commit is contained in:
@ -321,13 +321,14 @@ if _RESTORE:
|
||||
# Modify the fields from the dict
|
||||
#loaded['logo']['icon'] = "/images/morefine2.png"
|
||||
print(json.dumps(loaded, indent=2))
|
||||
loaded[2]['logo']['icon'] = "/images/qnap_nas.png"
|
||||
loaded[2]['logo']['icon'] = "/images/qnap_nas1.png"
|
||||
|
||||
# Save it again
|
||||
with open(file, 'w') as stream:
|
||||
try:
|
||||
yaml.dump(loaded, stream, default_flow_style=False)
|
||||
except yaml.YAMLError as exc:
|
||||
print("failed")
|
||||
print(exc)
|
||||
|
||||
if _TEST:
|
||||
|
Reference in New Issue
Block a user