From faf6cb2390940fea013ff0a6db2d5dbf2cc41faf Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 2 Mar 2022 15:43:26 +0300 Subject: Remove duplicate params * gn3/db/sample_data.py (insert_sample_data)[__insert_case_attribute]: Remove extra parameters. --- gn3/db/sample_data.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py index af6452a..dbe968d 100644 --- a/gn3/db/sample_data.py +++ b/gn3/db/sample_data.py @@ -267,8 +267,7 @@ def insert_sample_data(conn: Any, # pylint: disable=[R0913] return cursor.rowcount return 0 - def __insert_case_attribute(conn, strain_id, - case_attr, value, inbredset_id): + def __insert_case_attribute(conn, case_attr, value): if value != "x": with conn.cursor() as cursor: cursor.execute( @@ -304,10 +303,8 @@ def insert_sample_data(conn: Any, # pylint: disable=[R0913] else: count += __insert_case_attribute( conn=conn, - strain_id=strain_id, case_attr=header, - value=value, - inbredset_id=inbredset_id) + value=value) return count except Exception as e: # pylint: disable=[C0103, W0612] conn.rollback() -- cgit v1.2.3