From 0d5dc5489837957e3fab513b9dcc550eddfe53ca Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 16 Oct 2023 13:43:12 +0300 Subject: Link study to ProbeSetFreeze table. --- qc_app/dbinsert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qc_app/dbinsert.py b/qc_app/dbinsert.py index 589ac75..32043a7 100644 --- a/qc_app/dbinsert.py +++ b/qc_app/dbinsert.py @@ -281,7 +281,7 @@ def create_dataset(): cursor.execute("SELECT MAX(Id) AS last_id FROM ProbeSetFreeze") new_datasetid = cursor.fetchone()["last_id"] + 1 values = ( - new_datasetid, new_datasetid, form["avgid"], + new_datasetid, form["studyid"], form["avgid"], form.get("datasetname",""), form["datasetname2"], form["datasetfullname"], form["datasetshortname"], datetime.now().date().strftime("%Y-%m-%d"), -- cgit v1.2.3