aboutsummaryrefslogtreecommitdiff
path: root/uploader/genotypes
diff options
context:
space:
mode:
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)