diff options
author | Frederick Muriuki Muriithi | 2024-09-24 10:31:48 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-24 10:31:48 -0500 |
commit | 03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8 (patch) | |
tree | bcae66f84c3e953bcc4967bcd1237ccb792526cc /uploader/genotypes | |
parent | f74c89feb2bef25225cc8d534129480abdc3c594 (diff) | |
download | gn-uploader-03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8.tar.gz |
typing: Fix type errors
Diffstat (limited to 'uploader/genotypes')
-rw-r--r-- | uploader/genotypes/models.py | 4 |
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) |