bunch of bugfix

This commit is contained in:
spitkov 2024-09-08 14:12:10 +02:00
parent 02116cd36f
commit 877dbf1c3c

6
app.py
View File

@ -121,11 +121,11 @@ def redirect_vanity(vanity):
'url': url_for('download_file', vanity=vanity) 'url': url_for('download_file', vanity=vanity)
} }
@app.route('/<vanity>/raw', methods=['GET']) @app.route('/<vanity>/raw', methods=['GET'])
def rawvanity: def rawvanity(vanity):
target = data_store.get(vanity)
if target: if target:
if target['type'] == 'pastebin': if target['type'] == 'pastebin':
return render_template(f'{vanity}raw.html') return render_template(f'{vanity}raw.html')
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) app.run(debug=True,port=7123)