aboutsummaryrefslogtreecommitdiff
path: root/qc_app/parse.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-08 10:32:10 +0300
committerFrederick Muriuki Muriithi2024-04-08 10:32:10 +0300
commit619bf2e80dd6c225a4121507f0b9374598b94ea6 (patch)
treecc473938d499435e6d37393b1b82e3b9acde2ab8 /qc_app/parse.py
parentd5833b207185597d63bbc5ff2b0cc0df6df4ab69 (diff)
downloadgn-uploader-619bf2e80dd6c225a4121507f0b9374598b94ea6.tar.gz
Fix issues caught by integration tests.
Diffstat (limited to 'qc_app/parse.py')
-rw-r--r--qc_app/parse.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/qc_app/parse.py b/qc_app/parse.py
index ba2e63e..d20f6f0 100644
--- a/qc_app/parse.py
+++ b/qc_app/parse.py
@@ -30,7 +30,7 @@ def parse():
filename = request.args.get("filename")
filetype = request.args.get("filetype")
if speciesid is None:
- flash("No species selected", "alert-error alert-expr-data-error")
+ flash("No species selected", "alert-error error-expr-data")
errors = True
else:
try:
@@ -38,30 +38,30 @@ def parse():
species = with_db_connection(
lambda con: species_by_id(con, speciesid))
if not bool(species):
- flash("No such species.", "alert-error alert-expr-data-error")
+ flash("No such species.", "alert-error error-expr-data")
errors = True
except ValueError:
flash("Invalid speciesid provided. Expected an integer.",
- "alert-error alert-expr-data-error")
+ "alert-error error-expr-data")
errors = True
if filename is None:
- flash("No file provided", "alert-error alert-expr-data-error")
+ flash("No file provided", "alert-error error-expr-data")
errors = True
if filetype is None:
- flash("No filetype provided", "alert-error alert-expr-data-error")
+ flash("No filetype provided", "alert-error error-expr-data")
errors = True
if filetype not in ("average", "standard-error"):
- flash("Invalid filetype provided", "alert-error alert-expr-data-error")
+ flash("Invalid filetype provided", "alert-error error-expr-data")
errors = True
if filename:
filepath = os.path.join(app.config["UPLOAD_FOLDER"], filename)
if not os.path.exists(filepath):
flash("Selected file does not exist (any longer)",
- "alert-error alert-expr-data-error")
+ "alert-error error-expr-data")
errors = True
if errors: