From cdd4dc456e56bb4eb055e1cb7f2518d45fb3bfb9 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 20 Jan 2024 09:57:23 +0300 Subject: Fetch sample/case names from database Fetch the sample/case names from the database rather than from a static file in the repository. Issue: https://issues.genenetwork.org/issues/quality-control/read-samples-from-database-by-species --- qc_app/entry.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'qc_app/entry.py') diff --git a/qc_app/entry.py b/qc_app/entry.py index 0cd34c5..987fdcd 100644 --- a/qc_app/entry.py +++ b/qc_app/entry.py @@ -104,9 +104,10 @@ def upload_file(): return render_template( "index.html", species=with_db_connection(species)), 400 - return redirect(url_for( - "parse.parse", filename=filename, - filetype=request.form["filetype"])) + return redirect(url_for("parse.parse", + speciesid=request.form["speciesid"], + filename=filename, + filetype=request.form["filetype"])) @entrybp.route("/data-review", methods=["GET"]) def data_review(): -- cgit v1.2.3