From 64d13bb3cd4c0f5155d380ec467d7de4f0326831 Mon Sep 17 00:00:00 2001 From: Andrew Green Date: Mon, 9 Oct 2023 12:28:50 +0100 Subject: [PATCH] Use bewtween properly It doesn't take a list --- rnacentral_pipeline/rnacentral/precompute/ranges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rnacentral_pipeline/rnacentral/precompute/ranges.py b/rnacentral_pipeline/rnacentral/precompute/ranges.py index e724f644..d5da0446 100644 --- a/rnacentral_pipeline/rnacentral/precompute/ranges.py +++ b/rnacentral_pipeline/rnacentral/precompute/ranges.py @@ -28,7 +28,7 @@ def upi_taxid_ranges(ranges, tablename, db_url): query = ( Query.from_(table) .select(fn.Min(table.id), fn.Max(table.id)) - .where(table.precompute_urs_id.between([start, stop])) + .where(table.precompute_urs_id.between(start, stop)) ) cur.execute(str(query), ((start, stop),))