diff options
author | BonfaceKilz | 2022-03-02 15:43:26 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-12 15:33:09 +0300 |
commit | faf6cb2390940fea013ff0a6db2d5dbf2cc41faf (patch) | |
tree | 5462c9ab429993e74809e3d464ee148568a7af13 /gn3/db | |
parent | de16143e8574a811fac5b7988145fffd9db19d2c (diff) | |
download | genenetwork3-faf6cb2390940fea013ff0a6db2d5dbf2cc41faf.tar.gz |
Remove duplicate params
* gn3/db/sample_data.py (insert_sample_data)[__insert_case_attribute]: Remove
extra parameters.
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/sample_data.py | 7 |
1 files 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() |