From 7e2c3ba3fb71d2d303f788bf15f017fab9f2440a Mon Sep 17 00:00:00 2001 From: bursa-pastoris Date: Thu, 19 Oct 2023 19:33:11 +0200 Subject: [PATCH] Fix: write chat files instead of appending to them --- scel-buc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scel-buc.py b/scel-buc.py index 4372489..1faa081 100755 --- a/scel-buc.py +++ b/scel-buc.py @@ -92,7 +92,7 @@ def generate_pages(): chat_file = CHAT_PATH+f'/{chat_id}.html' chat_files.add(chat_file) for i in chat_files: - with open(i, 'a') as f: + with open(i, 'w') as f: f.write(f'\n' f' \n' f' \n'