aboutsummaryrefslogtreecommitdiff
path: root/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-12 11:39:47 +0300
committerFrederick Muriuki Muriithi2024-04-12 11:39:47 +0300
commitb906daff08dba1264188dd5e57642c6f255830dc (patch)
treefba0bc77e5678d670867e11a95e5aa5be67aefc2 /qc_app
parent2fdabcaf36a287d8af11ab045f941ed39661a9fd (diff)
downloadgn-uploader-b906daff08dba1264188dd5e57642c6f255830dc.tar.gz
Provide defaults for required field.
Diffstat (limited to 'qc_app')
-rw-r--r--qc_app/db/datasets.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/qc_app/db/datasets.py b/qc_app/db/datasets.py
index b56dcf5..bf5ac25 100644
--- a/qc_app/db/datasets.py
+++ b/qc_app/db/datasets.py
@@ -106,16 +106,18 @@ def probeset_create_dataset(conn: mdb.Connection,#pylint: disable=[too-many-argu
"sname": datasetshortname,
"today": date.today().isoformat(),
"public": 2 if public else 0,
+ "authorisedusers": "williamslab",
"datascale": datascale
}
cursor.execute(
"""
INSERT INTO ProbeSetFreeze(
ProbeFreezeId, AvgId, Name, Name2, FullName, ShortName,
- CreateTime, public, DataScale)
+ CreateTime, public, AuthorisedUsers, DataScale)
VALUES(
%(studyid)s, %(averageid)s, %(name)s, %(name2)s, %(fname)s,
- %(sname)s, %(today)s, %(public)s, %(datascale)s)
+ %(sname)s, %(today)s, %(public)s, %(authorisedusers)s,
+ %(datascale)s)
""",
dataset)
return {**dataset, "datasetid": cursor.lastrowid}