Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add start page #61

Merged
merged 15 commits into from
Feb 16, 2022
Prev Previous commit
Next Next commit
Put the error message on one line
This reads a little neater I think!
John Peart committed Feb 15, 2022
commit 48e84b6f98186448a917e8bec3ed2074efcc7bc3
5 changes: 2 additions & 3 deletions app/main/routes.py
Original file line number Diff line number Diff line change
@@ -68,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"