aboutsummaryrefslogtreecommitdiff
path: root/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-12-19 19:30:58 +0300
committerFrederick Muriuki Muriithi2023-12-19 19:30:58 +0300
commit0ff83673e99a1163dfb9feb440d352879872eee7 (patch)
treeb4eec640429f9d79b06e3c1c2b8eef3d0e1ce612 /qc_app
parentd4e45e5bf9877957c36b8e0a537ba3819a674614 (diff)
downloadgn-uploader-0ff83673e99a1163dfb9feb440d352879872eee7.tar.gz
Bug: Commit population before trying to upload data.
Diffstat (limited to 'qc_app')
-rw-r--r--qc_app/samples.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/qc_app/samples.py b/qc_app/samples.py
index e1e88bd..d27164e 100644
--- a/qc_app/samples.py
+++ b/qc_app/samples.py
@@ -102,12 +102,13 @@ def create_population():
"Family": request.form.get("inbredset_family") or None,
"Description": request.form.get("description") or None
})
- flash("Grouping/Population created successfully.", "alert-success")
- return render_template(
- "samples/upload-samples.html",
- species=species,
- population=with_db_connection(
- lambda conn: population_by_id(conn, pop_id)))
+
+ flash("Grouping/Population created successfully.", "alert-success")
+ return render_template(
+ "samples/upload-samples.html",
+ species=species,
+ population=with_db_connection(
+ lambda conn: population_by_id(conn, pop_id)))
@samples.route("/upload/select-population", methods=["POST"])
def select_population():