diff --git a/routes/confirm_save.py b/routes/confirm_save.py index c818e42..f72cb2d 100644 --- a/routes/confirm_save.py +++ b/routes/confirm_save.py @@ -50,5 +50,4 @@ def confirm_save(): # Clear session data after successful insertion session.pop('assets', None) - flash("Data successfully saved to the database.", "success") return redirect('/viewall') \ No newline at end of file diff --git a/templates/upload.html b/templates/upload.html index 6db0a4f..de8b3e0 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -8,34 +8,20 @@

Upload CSV File

- - {% with messages = get_flashed_messages(with_categories=true) %} + + {% with messages = get_flashed_messages(category_filter=["error"]) %} {% if messages %}
Errors found during submission (click to expand):
{% endif %} {% endwith %} - - {% if errors %} -
- - Errors found in the CSV file (click to expand): - - -
- {% endif %} -