aboutsummaryrefslogtreecommitdiff
path: root/uploader/platforms
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/platforms
parentf74c89feb2bef25225cc8d534129480abdc3c594 (diff)
downloadgn-uploader-03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8.tar.gz
typing: Fix type errors
Diffstat (limited to 'uploader/platforms')
-rw-r--r--uploader/platforms/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/platforms/models.py b/uploader/platforms/models.py
index adad0b2..4b690bb 100644
--- a/uploader/platforms/models.py
+++ b/uploader/platforms/models.py
@@ -13,7 +13,7 @@ def platforms_by_species(
"""Retrieve platforms by the species"""
_query = ("SELECT * FROM GeneChip WHERE SpeciesId=%s "
"ORDER BY GeneChipName ASC")
- if bool(limit) and limit > 0:
+ if bool(limit) and limit > 0:# type: ignore[operator]
_query = f"{_query} LIMIT {limit} OFFSET {offset}"
with conn.cursor(cursorclass=DictCursor) as cursor:
cursor.execute(_query, (speciesid,))