From 2cd740180850c959ae54efb72b14255c358e181c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 6 Sep 2022 11:55:07 +0300 Subject: Use dataset name if dataset group name is not set. --- wqflask/base/data_set.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3