fix: ensure utf-8 encoding in jobs.json
This commit is contained in:
parent
daabb2d445
commit
c55f50a5b9
|
|
@ -1294,6 +1294,7 @@ def _save_jobs_unlocked(
|
|||
{"jobs": jobs, "updated_at": _hermes_now().isoformat()},
|
||||
f,
|
||||
indent=2,
|
||||
ensure_ascii=False,
|
||||
)
|
||||
f.flush()
|
||||
os.fsync(f.fileno())
|
||||
|
|
@ -1362,6 +1363,7 @@ def _save_jobs_unlocked(
|
|||
{"jobs": jobs, "updated_at": _hermes_now().isoformat()},
|
||||
f,
|
||||
indent=2,
|
||||
ensure_ascii=False,
|
||||
)
|
||||
f.flush()
|
||||
os.fsync(f.fileno())
|
||||
|
|
|
|||
Loading…
Reference in New Issue