Update app.py

added raw support, probably works
This commit is contained in:
spitkov 2024-09-08 14:02:03 +02:00
parent a816d4aaeb
commit 55abf13aa9

4
app.py
View File

@ -55,6 +55,10 @@ def upload_pastebin():
html_content = render_template('content.html', content=content, created_at=created_at)
html_file_path = os.path.join('templates', f'{vanity}.html')
with open(html_file_path, 'w') as f:
f.write(html_content)
html_content = render_template('raw.html', content=content)
html_file_path = os.path.join('templates', f'{vanity}raw.html')
with open(html_file_path, 'w') as f:
f.write(html_content)