aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/traits.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-22 08:36:11 +0300
committerFrederick Muriuki Muriithi2021-09-22 08:36:11 +0300
commit71cc35e5178904b512b9007e33be17a36f6656f2 (patch)
tree2d059b89aa30ce55d2cafe781915abc3ea31d948 /gn3/db/traits.py
parentcd7f301688fd9780df1f842f8bd2b7602775ba1f (diff)
downloadgenenetwork3-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.py8
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)