diff --git a/indexer_app/tasks.py b/indexer_app/tasks.py index 90056d0..706ba85 100644 --- a/indexer_app/tasks.py +++ b/indexer_app/tasks.py @@ -59,7 +59,7 @@ def listen_to_near_events(): try: # Update below with desired network & block height # start_block = get_block_height("current_block_height") - start_block = 112461673 + start_block = 112961757 logger.info(f"what's the start block, pray tell? {start_block-1}") loop.run_until_complete(indexer("mainnet", start_block - 1, None)) except WorkerLostError: diff --git a/indexer_app/utils.py b/indexer_app/utils.py index e3fd803..9e05d25 100644 --- a/indexer_app/utils.py +++ b/indexer_app/utils.py @@ -98,7 +98,7 @@ async def handle_new_pot( "all_paid_out": False, "protocol_config_provider": data["protocol_config_provider"], } - potObject = await Pot.objects.aupdate_or_create( + pot, created = await Pot.objects.aupdate_or_create( id=receiver, defaults=pot_defaults ) @@ -106,7 +106,7 @@ async def handle_new_pot( if data.get("admins"): for admin_id in data["admins"]: admin, _ = await Account.objects.aget_or_create(id=admin_id) - potObject.admins.aadd(admin) + pot.admins.aadd(admin) defaults = { "signer_id": signerId,