From b906daff08dba1264188dd5e57642c6f255830dc Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 12 Apr 2024 11:39:47 +0300 Subject: Provide defaults for required field. --- qc_app/db/datasets.py | 6 ++++-- 1 file 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} -- cgit v1.2.3