aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-22 06:33:47 +0300
committerFrederick Muriuki Muriithi2022-09-22 06:33:47 +0300
commit30f305c1b87b4b6c4f308b15d5ae9248dc367e14 (patch)
treec5eb6fa62ccb63740a006bf3029cbd9cce140dcb /wqflask/base/data_set
parentd4f00edc48e4b0b467440cb7566f26920be99d95 (diff)
downloadgenenetwork2-30f305c1b87b4b6c4f308b15d5ae9248dc367e14.tar.gz
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.
Diffstat (limited to 'wqflask/base/data_set')
-rw-r--r--wqflask/base/data_set/dataset.py2
1 files changed, 1 insertions, 1 deletions
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 {