aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2022-04-07 11:49:38 +0300
committerBonfaceKilz2022-04-07 11:54:28 +0300
commit48cc775e5cbcb9cf8e97b966c86527c5344fa6ea (patch)
treeb9ee6ee48534e8bb60ea0e673845e4270caed135 /gn3/db
parenta74fadbc944ab2028527160994dc8fbae9079a75 (diff)
downloadgenenetwork3-48cc775e5cbcb9cf8e97b966c86527c5344fa6ea.tar.gz
Fix pylint errors
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]