aboutsummaryrefslogtreecommitdiff
path: root/uploader/genotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-24 10:31:48 -0500
committerFrederick Muriuki Muriithi2024-09-24 10:31:48 -0500
commit03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8 (patch)
treebcae66f84c3e953bcc4967bcd1237ccb792526cc /uploader/genotypes
parentf74c89feb2bef25225cc8d534129480abdc3c594 (diff)
downloadgn-uploader-03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8.tar.gz
typing: Fix type errors
Diffstat (limited to 'uploader/genotypes')
-rw-r--r--uploader/genotypes/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/genotypes/models.py b/uploader/genotypes/models.py
index 1fe5929..db8cc3e 100644
--- a/uploader/genotypes/models.py
+++ b/uploader/genotypes/models.py
@@ -32,7 +32,7 @@ def genotype_markers(
) -> tuple[dict, ...]:
"""Retrieve markers from the database."""
_query = "SELECT * FROM Geno WHERE SpeciesId=%s"
- if bool(limit) and limit > 0:
+ if bool(limit) and limit > 0:# type: ignore[operator]
_query = _query + f" LIMIT {limit} OFFSET {offset}"
with conn.cursor(cursorclass=DictCursor) as cursor:
@@ -59,7 +59,7 @@ def genotype_dataset(
_params = (species_id, population_id)
if bool(dataset_id):
_query = _query + " AND gf.Id=%s"
- _params = _params + (dataset_id,)
+ _params = _params + (dataset_id,)# type: ignore[assignment]
with conn.cursor(cursorclass=DictCursor) as cursor:
cursor.execute(_query, _params)