logging after labels are parsed

pull/617/head
Yhtyyar Sahatov 2022-04-04 18:04:00 +03:00
rodzic c11fbe0e30
commit 721fd61e02
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -217,8 +217,11 @@ def crawl_erc721_labels(
transactions.append(parse_transaction_label(label))
else:
events.append(parse_event(label))
logger.info(f"Parsed {len(events)} events and {len(transactions)} transactions")
insert_transactions(conn, transactions)
insert_events(conn, events)
logger.info(f"Saved {len(events)} events and {len(transactions)} transactions")
pbar.update(batch_end - current_block + 1)
current_block = batch_end + 1