This commit is contained in:
2025-03-03 15:10:53 +01:00
parent f304b908be
commit 22fdeab1d2

View File

@ -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: