mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 17:34:31 +00:00
Make connector status readable for admin display
This commit is contained in:
@@ -27,6 +27,7 @@ fd, temporary = tempfile.mkstemp(dir=os.path.dirname(path))
|
|||||||
with os.fdopen(fd, "w", encoding="utf-8") as handle:
|
with os.fdopen(fd, "w", encoding="utf-8") as handle:
|
||||||
json.dump(payload, handle, ensure_ascii=False)
|
json.dump(payload, handle, ensure_ascii=False)
|
||||||
handle.write("\n")
|
handle.write("\n")
|
||||||
|
os.chmod(temporary, 0o644)
|
||||||
os.replace(temporary, path)
|
os.replace(temporary, path)
|
||||||
PY
|
PY
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user