aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-06 11:55:07 +0300
committerFrederick Muriuki Muriithi2022-09-06 11:55:07 +0300
commit2cd740180850c959ae54efb72b14255c358e181c (patch)
treeb45eaab97337e64462f58df7b1389ed8fb4ff886 /wqflask
parent0952533db32a42754fabfbc67e2896dc86922789 (diff)
downloadgenenetwork2-2cd740180850c959ae54efb72b14255c358e181c.tar.gz
Use dataset name if dataset group name is not set.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/data_set.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 433365fc..da3c0628 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -325,7 +325,7 @@ class DatasetGroup:
InbredSet.InbredSetCode FROM InbredSet where Name=%s
"""
if not name:
- query, name = dataset.query_for_group, self.name
+ query, name = dataset.query_for_group, dataset.name
with database_connection() as conn, conn.cursor() as cursor:
cursor.execute(query, (name,))
results = cursor.fetchone()