Name change

This commit is contained in:
bogo
2024-09-27 15:01:44 +02:00
parent b38193f143
commit 1dbd33abdc
6 changed files with 12 additions and 12 deletions

6
app.py
View File

@@ -178,7 +178,7 @@ def generate_pdf():
pdf_file = io.BytesIO()
HTML(string=rendered_html).write_pdf(pdf_file)
pdf_file.seek(0)
filename = 'Paper Challenge - ' + stage.replace('_', ' ') + ' - ' + str(distance) + 'cm-' + size + '.pdf'
filename = 'Steel Training - ' + stage.replace('_', ' ') + ' - ' + str(distance) + 'cm-' + size + '.pdf'
return send_file(pdf_file, download_name=filename, as_attachment=False)
@@ -218,7 +218,7 @@ def generate_pdf_shootoff():
pdf_file = io.BytesIO()
HTML(string=rendered_html).write_pdf(pdf_file)
pdf_file.seek(0)
filename = 'Paper Challenge - Shootoff - ' + str(distance) + 'cm-' + size + '.pdf'
filename = 'Steel Training - Shootoff - ' + str(distance) + 'cm-' + size + '.pdf'
return send_file(pdf_file, download_name=filename, as_attachment=False)
@@ -260,7 +260,7 @@ def generate_pdf_ipsc():
pdf_file = io.BytesIO()
HTML(string=rendered_html).write_pdf(pdf_file)
pdf_file.seek(0)
filename = 'Paper Challenge - IPSC - EL Presidente - ' + str(distance) + 'cm-' + size + '.pdf'
filename = 'Steel Training - IPSC - EL Presidente - ' + str(distance) + 'cm-' + size + '.pdf'
return send_file(pdf_file, download_name=filename, as_attachment=False)