diff --git a/app/main/routes.py b/app/main/routes.py index 8beda271..2cddf547 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -31,6 +31,11 @@ def index(): return render_template("index.html", title="Mentor matcher") +@main_bp.route("/match", methods=["GET"]) +def match(): + return render_template("match.html", title="Mentor matcher") + + @main_bp.route("/cookies") def cookies(): return render_template("cookies.html", title="Cookies") @@ -63,12 +68,11 @@ def upload(): else: if len(files) != 2: error_message = ( - "Number of files is incorrect. Please only upload two files" + "Number of files is incorrect. Please only upload two files." ) elif not valid_files(filenames): error_message = ( - "Filenames incorrect. Please label your files as 'mentees.csv' and" - " 'mentors.csv'" + "Your filenames are incorrect. Please label your files as 'mentees.csv' and 'mentors.csv'." ) else: error_message = "Unspecified error. Please contact the admin team" diff --git a/app/templates/index.html b/app/templates/index.html index 8e31987c..ec947be1 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -5,34 +5,21 @@ {% endblock %} {% block content %} -
Pick a task length.
- -mentees.csv
and mentors.csv
– to start the matching process. Those files need to be formatted with specific column headings. You can download a template from this website.- Error: {{ error_message }} --{% endif %} -