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/static/js/upload_progress.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qc_app/static') diff --git a/qc_app/static/js/upload_progress.js b/qc_app/static/js/upload_progress.js index 98a503a..c98c33c 100644 --- a/qc_app/static/js/upload_progress.js +++ b/qc_app/static/js/upload_progress.js @@ -65,6 +65,9 @@ function selected_filetype(radios) { function setup_formdata(form) { var formdata = new FormData(); + formdata.append( + "speciesid", + form.querySelector("#select_species01").value) formdata.append( "qc_text_file", form.querySelector("input[type='file']").files[0]); -- cgit v1.2.3