diff options
author | Frederick Muriuki Muriithi | 2024-02-14 10:56:08 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-02-14 10:56:08 +0300 |
commit | e9e3b1efc33b35280464ba2f40d96fdd6560e3c1 (patch) | |
tree | 8eda1bc024f1a3d598045651a6508036ff23e99e /qc_app/entry.py | |
parent | 1fda6924b4ac792e4fea42179f8e2242c1cd6dd5 (diff) | |
download | gn-uploader-e9e3b1efc33b35280464ba2f40d96fdd6560e3c1.tar.gz |
Extract upload progress indication code
* Extract the UI elements and code for indicating upload progress into
separate, reusable "modules".
* Fix bugs arising from changes.
Diffstat (limited to 'qc_app/entry.py')
-rw-r--r-- | qc_app/entry.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qc_app/entry.py b/qc_app/entry.py index 987fdcd..f166d4c 100644 --- a/qc_app/entry.py +++ b/qc_app/entry.py @@ -86,7 +86,7 @@ def upload_file(): request_errors = errors(request) if request_errors: for error in request_errors: - flash(error, "alert-error") + flash(error, "alert-error error-expr-data") return render_template( "index.html", species=with_db_connection(species)), 400 @@ -100,7 +100,7 @@ def upload_file(): zip_errors = zip_file_errors(filepath, upload_dir) if zip_errors: for error in zip_errors: - flash(error, "alert-error") + flash(error, "alert-error error-expr-data") return render_template( "index.html", species=with_db_connection(species)), 400 |