diff options
author | Frederick Muriuki Muriithi | 2021-09-22 08:36:11 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-09-22 08:36:11 +0300 |
commit | 71cc35e5178904b512b9007e33be17a36f6656f2 (patch) | |
tree | 2d059b89aa30ce55d2cafe781915abc3ea31d948 /gn3/db/traits.py | |
parent | cd7f301688fd9780df1f842f8bd2b7602775ba1f (diff) | |
download | genenetwork3-71cc35e5178904b512b9007e33be17a36f6656f2.tar.gz |
Fix typing issues
* Ignore some errors
* Update typing definitions for some portions of code
* Add missing imports
Diffstat (limited to 'gn3/db/traits.py')
-rw-r--r-- | gn3/db/traits.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py index 747ed27..4fc47c3 100644 --- a/gn3/db/traits.py +++ b/gn3/db/traits.py @@ -63,22 +63,22 @@ def update_sample_data(conn: Any, with conn.cursor() as cursor: # Update the Strains table cursor.execute(STRAIN_ID_SQL, (strain_name, strain_id)) - updated_strains: int = cursor.rowcount + updated_strains = cursor.rowcount # Update the PublishData table cursor.execute(PUBLISH_DATA_SQL, (None if value == "x" else value, strain_id, publish_data_id)) - updated_published_data: int = cursor.rowcount + updated_published_data = cursor.rowcount # Update the PublishSE table cursor.execute(PUBLISH_SE_SQL, (None if error == "x" else error, strain_id, publish_data_id)) - updated_se_data: int = cursor.rowcount + updated_se_data = cursor.rowcount # Update the NStrain table cursor.execute(N_STRAIN_SQL, (None if count == "x" else count, strain_id, publish_data_id)) - updated_n_strains: int = cursor.rowcount + updated_n_strains = cursor.rowcount return (updated_strains, updated_published_data, updated_se_data, updated_n_strains) |