From 2768a96133ee466cb12df47ad99642c2eda918be Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 18 Apr 2023 16:11:24 +0200 Subject: [PATCH] Rename contributions create templates --- app/contributions/spacy_nlp_pipeline_models/routes.py | 2 +- app/contributions/tesseract_ocr_pipeline_models/routes.py | 2 +- .../{create_spacy_nlp_pipeline_model.html.j2 => create.html.j2} | 0 ...eate_tesseract_ocr_pipeline_model.html.j2 => create.html.j2} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename app/templates/contributions/spacy_nlp_pipeline_models/{create_spacy_nlp_pipeline_model.html.j2 => create.html.j2} (100%) rename app/templates/contributions/tesseract_ocr_pipeline_models/{create_tesseract_ocr_pipeline_model.html.j2 => create.html.j2} (100%) diff --git a/app/contributions/spacy_nlp_pipeline_models/routes.py b/app/contributions/spacy_nlp_pipeline_models/routes.py index a3afbe55..53593cc8 100644 --- a/app/contributions/spacy_nlp_pipeline_models/routes.py +++ b/app/contributions/spacy_nlp_pipeline_models/routes.py @@ -50,7 +50,7 @@ def create_spacy_nlp_pipeline_model(): flash(f'SpaCy NLP Pipeline model "{snpm.title}" created') return {}, 201, {'Location': url_for('.spacy_nlp_pipeline_models')} return render_template( - 'contributions/spacy_nlp_pipeline_models/create_spacy_nlp_pipeline_model.html.j2', + 'contributions/spacy_nlp_pipeline_models/create.html.j2', title='Create SpaCy NLP Pipeline Model', form=form ) diff --git a/app/contributions/tesseract_ocr_pipeline_models/routes.py b/app/contributions/tesseract_ocr_pipeline_models/routes.py index c35b0419..0f0390aa 100644 --- a/app/contributions/tesseract_ocr_pipeline_models/routes.py +++ b/app/contributions/tesseract_ocr_pipeline_models/routes.py @@ -49,7 +49,7 @@ def create_tesseract_ocr_pipeline_model(): flash(f'Tesseract OCR Pipeline model "{topm.title}" created') return {}, 201, {'Location': url_for('.tesseract_ocr_pipeline_models')} return render_template( - 'contributions/tesseract_ocr_pipeline_models/create_tesseract_ocr_pipeline_model.html.j2', + 'contributions/tesseract_ocr_pipeline_models/create.html.j2', title='Create Tesseract OCR Pipeline Model', form=form ) diff --git a/app/templates/contributions/spacy_nlp_pipeline_models/create_spacy_nlp_pipeline_model.html.j2 b/app/templates/contributions/spacy_nlp_pipeline_models/create.html.j2 similarity index 100% rename from app/templates/contributions/spacy_nlp_pipeline_models/create_spacy_nlp_pipeline_model.html.j2 rename to app/templates/contributions/spacy_nlp_pipeline_models/create.html.j2 diff --git a/app/templates/contributions/tesseract_ocr_pipeline_models/create_tesseract_ocr_pipeline_model.html.j2 b/app/templates/contributions/tesseract_ocr_pipeline_models/create.html.j2 similarity index 100% rename from app/templates/contributions/tesseract_ocr_pipeline_models/create_tesseract_ocr_pipeline_model.html.j2 rename to app/templates/contributions/tesseract_ocr_pipeline_models/create.html.j2