Commit a8ba91dd authored by Kantz's avatar Kantz
Browse files

ü,ö,ä, im Context

parent 187b5745
......@@ -73,7 +73,7 @@ def save_sheet(sheet: dict[str, Any]) -> None:
chat_id = sheet.get("chat_id", "unknown")
latest_path = os.path.join(_LOG_DIR, f"{chat_id}_latest.json")
payload = json.dumps(sheet, ensure_ascii=True, indent=2)
payload = json.dumps(sheet, ensure_ascii=False, indent=2)
with open(latest_path, "w", encoding="utf-8") as file_handle:
file_handle.write(payload)
......
......@@ -52,7 +52,7 @@ def archive_chat(
}
os.makedirs(_LOG_DIR, exist_ok=True)
payload = json.dumps(record, ensure_ascii=True)
payload = json.dumps(record, ensure_ascii=False)
with _LOCK:
with open(_LOG_PATH, "a", encoding="utf-8") as f:
f.write(payload + "\n")
......
......@@ -42,5 +42,5 @@ def write_tool_log(entries: list[dict], created_at: str | None = None, chat_id:
except (OSError, json.JSONDecodeError):
pass
with open(path, "w", encoding="utf-8") as f:
json.dump(payload, f, ensure_ascii=True, indent=2)
json.dump(payload, f, ensure_ascii=False, indent=2)
return path
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment