From 1dbd33abdc09368c205662c8b1e8696dbf4aae30 Mon Sep 17 00:00:00 2001 From: bogo Date: Fri, 27 Sep 2024 15:01:44 +0200 Subject: [PATCH] Name change --- README.md | 2 +- app.py | 6 +++--- templates/base.html | 4 ++-- templates/pdf_template.html | 4 ++-- templates/pdf_template_ipsc.html | 4 ++-- templates/pdf_template_shootoff.html | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 99a5384..08d6785 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Paper Challenge +# Steel Training - Projekt powstał na potrzeby treningu Steel Challenge w domowym zaciszu - Ostrzeżenie: Od ponad 11 lat pracuję z PHP, więc mogą być widoczne naleciałości! Ten projekt to moje pierwsze... no może drugie kroki w Pythonie. ### Kopiowanie, rozpowszechnianie, modyfikowanie i udostępnianie na potrzeby własne, klubowe lub dla kolegi, stanowczo zalecane diff --git a/app.py b/app.py index 7ab2676..f2c56e6 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/templates/base.html b/templates/base.html index 2572585..18a5348 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ - Paper Challenge + Steel Training