aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorBonfaceKilz2020-07-27 18:35:45 +0300
committerBonfaceKilz2020-07-27 18:35:45 +0300
commit441e2dfa2772794673b69cc72f8561fc026d077b (patch)
tree4a60e35b450e8c3edbe4c0293192516836c5a229 /wqflask/base
parent957e05d33eb423df99181a99e7c25891810a21f7 (diff)
downloadgenenetwork2-441e2dfa2772794673b69cc72f8561fc026d077b.tar.gz
Use the correct redis instance inside object
* wqflask/base/data_set.py (DatasetType): Use object's redis instance
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/data_set.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 5d562871..bce94aa8 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -93,7 +93,7 @@ Publish or ProbeSet. E.g.
"""
self.redis_instance = redis_instance
self.datasets = {}
- data = redis_instance.get("dataset_structure")
+ data = self.redis_instance.get("dataset_structure")
if data:
self.datasets = json.loads(data)
else: # ZS: I don't think this should ever run unless Redis is emptied
@@ -115,7 +115,7 @@ Publish or ProbeSet. E.g.
except:
pass
- redis_instance.set("dataset_structure", json.dumps(self.datasets))
+ self.redis_instance.set("dataset_structure", json.dumps(self.datasets))
# Set LOG_LEVEL_DEBUG=5 to see the following:
logger.debugf(5, "datasets", self.datasets)