From 48cc775e5cbcb9cf8e97b966c86527c5344fa6ea Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 7 Apr 2022 11:49:38 +0300 Subject: Fix pylint errors --- gn3/db/sample_data.py | 4 ++-- 1 file 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] -- cgit v1.2.3