From 30f305c1b87b4b6c4f308b15d5ae9248dc367e14 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 22 Sep 2022 06:33:47 +0300 Subject: Provide database cursor as argument for TheSpecies and Chromosomes Provide the database cursor as an argument to the methods of the two classes: * wqflask.base.species.TheSpecies * wqflask.base.species.Chromosomes Also update dependent code to initialise and pass the cursor where these classes are used. --- wqflask/base/data_set/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/base/data_set') diff --git a/wqflask/base/data_set/dataset.py b/wqflask/base/data_set/dataset.py index f035e028..69c842ad 100644 --- a/wqflask/base/data_set/dataset.py +++ b/wqflask/base/data_set/dataset.py @@ -45,7 +45,7 @@ class DataSet: self.accession_id = self.get_accession_id() if get_samplelist == True: self.group.get_samplelist(redis_conn) - self.species = species.TheSpecies(self) + self.species = species.TheSpecies(dataset=self) def as_dict(self): return { -- cgit v1.2.3