From db36ba997daa250a386485a9ae2fc7bccce2e89e Mon Sep 17 00:00:00 2001 From: nolash Date: Tue, 2 Mar 2021 16:50:48 +0100 Subject: [PATCH] Handle single dict input to tx list, add tx list ext task to tasker --- apps/cic-eth/cic_eth/ext/tx.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/cic-eth/cic_eth/ext/tx.py b/apps/cic-eth/cic_eth/ext/tx.py index 340f77be..6934b8c7 100644 --- a/apps/cic-eth/cic_eth/ext/tx.py +++ b/apps/cic-eth/cic_eth/ext/tx.py @@ -149,6 +149,9 @@ def tx_collate(tx_batches, chain_str, offset, limit, newest_first=True): txs_by_block = {} chain_spec = ChainSpec.from_chain_str(chain_str) + if isinstance(tx_batches, dict): + tx_batches = [tx_batches] + for b in tx_batches: for v in b.values(): tx = None