Fix: write chat files instead of appending to them
This commit is contained in:
parent
38c4727472
commit
7e2c3ba3fb
|
@ -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'
|
||||
|
|
Reference in New Issue