Fix: write chat files instead of appending to them

This commit is contained in:
bursa-pastoris 2023-10-19 19:33:11 +02:00
parent 38c4727472
commit 7e2c3ba3fb
1 changed files with 1 additions and 1 deletions

View File

@ -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'<html>\n'
f' <head>\n'
f' <link rel="stylesheet" href="./style.css" />\n'