diff options
author | Frederick Muriuki Muriithi | 2024-01-20 09:57:23 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-01-20 09:57:23 +0300 |
commit | cdd4dc456e56bb4eb055e1cb7f2518d45fb3bfb9 (patch) | |
tree | 73248acbadd5014f2b26da41da3098f1ac5ecc1e /qc_app/entry.py | |
parent | 53b1e7cb181380a24aab4cbc7a9634b2d8dd2d29 (diff) | |
download | gn-uploader-cdd4dc456e56bb4eb055e1cb7f2518d45fb3bfb9.tar.gz |
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
Diffstat (limited to 'qc_app/entry.py')
-rw-r--r-- | qc_app/entry.py | 7 |
1 files changed, 4 insertions, 3 deletions
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(): |