aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/sample_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py
index de90162..9e9d527 100644
--- a/gn3/db/sample_data.py
+++ b/gn3/db/sample_data.py
@@ -176,7 +176,7 @@ def update_sample_data(
cursor.execute(
"UPDATE CaseAttributeXRefNew "
"SET Value = %s "
- f"WHERE StrainId = %s AND CaseAttributeId = %s "
+ "WHERE StrainId = %s AND CaseAttributeId = %s "
"AND InbredSetId = %s",
(value, strain_id, id_, inbredset_id),
)
@@ -356,7 +356,7 @@ def insert_sample_data(
if not id_:
cursor.execute(
"SELECT Id FROM CaseAttribute WHERE Name = %s",
- (case_attr,),
+ (name,),
)
if case_attr_id := cursor.fetchone():
id_ = case_attr_id[0]