main.py: Remove comments

This commit is contained in:
Alan Orth 2021-03-12 21:28:24 +02:00
parent 54ea340b80
commit 126bf74ea0
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -39,11 +39,9 @@ def upload_file():
return "No file selected" return "No file selected"
# TODO: probably use a base64- and URL-encoded version of the filename here so
# we can allow results to be saved and shared?
@app.route("/result/<base64slug>") @app.route("/result/<base64slug>")
def process_file(base64slug): def process_file(base64slug):
# get filename from base64-encoded filename # get filename from base64-encoded slug
filename = b64decode(base64slug).decode("ascii") filename = b64decode(base64slug).decode("ascii")
# do we need to use secure_filename again here? # do we need to use secure_filename again here?