Update app.py
added raw support, probably works
This commit is contained in:
parent
a816d4aaeb
commit
55abf13aa9
4
app.py
4
app.py
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user