diff options
author | Frederick Muriuki Muriithi | 2024-04-12 11:39:47 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-12 11:39:47 +0300 |
commit | b906daff08dba1264188dd5e57642c6f255830dc (patch) | |
tree | fba0bc77e5678d670867e11a95e5aa5be67aefc2 /qc_app | |
parent | 2fdabcaf36a287d8af11ab045f941ed39661a9fd (diff) | |
download | gn-uploader-b906daff08dba1264188dd5e57642c6f255830dc.tar.gz |
Provide defaults for required field.
Diffstat (limited to 'qc_app')
-rw-r--r-- | qc_app/db/datasets.py | 6 |
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} |