aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/base/data_set.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 470aa28b..cd626526 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -650,18 +650,16 @@ class DataSet:
"ProbeSetFreeze.FullName = %s "
"OR ProbeSetFreeze.ShortName = %s)",
(self.name,)*3)
- (self.id, self.name, self.fullname, self.shortname,
- self.data_scale, self.tissue) = cursor.fetchone()
else:
+ self.tissue = "N/A"
cursor.execute(
"SELECT Id, Name, FullName, ShortName "
f"FROM {self.type}Freeze "
"WHERE (Name = %s OR FullName = "
"%s OR ShortName = %s)",
(self.name,)*3)
- (self.id, self.name, self.fullname, self.shortname,
- self.data_scale, self.tissue) = cursor.fetchone()
- self.tissue = "N/A"
+ (self.id, self.name, self.fullname, self.shortname,
+ self.data_scale, self.tissue) = cursor.fetchone()
except TypeError:
pass