From 41a96b5584fef9daa0763c9bfbdbc7b3c2f7fbec Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 2 Jun 2021 17:11:15 +0200 Subject: [PATCH] Int comparisons on block numbers in cic cache lookup --- apps/cic-cache/cic_cache/runnable/daemons/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cic-cache/cic_cache/runnable/daemons/query.py b/apps/cic-cache/cic_cache/runnable/daemons/query.py index bafde932..b2576690 100644 --- a/apps/cic-cache/cic_cache/runnable/daemons/query.py +++ b/apps/cic-cache/cic_cache/runnable/daemons/query.py @@ -89,7 +89,7 @@ def process_transactions_all_data(session, env): offset = r[1] end = r[2] - if r[2] < r[1]: + if int(r[2]) < int(r[1]): raise ValueError('cart before the horse, dude') c = DataCache(session)