From b4de5d7e09259b89f8ea0c4051841ee21442caa0 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 9 Jan 2022 16:00:03 -0800 Subject: [PATCH] fixing refs since updating schema --- suchwowx/cli/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suchwowx/cli/cli.py b/suchwowx/cli/cli.py index b8d23ae..4c8bc3e 100644 --- a/suchwowx/cli/cli.py +++ b/suchwowx/cli/cli.py @@ -28,8 +28,8 @@ def sync_avax(): # first get metadata ipfs hash deets = contract.functions.tokenMeme(i).call() try: - meme_exists = Meme.query.filter(Meme.meta_ipfs_hash == deets[5]).first() # noqa - user_exists = User.query.filter(User.public_address == deets[4].lower()).first() # noqa + meme_exists = Meme.query.filter(Meme.meta_ipfs_hash == deets[8]).first() # noqa + user_exists = User.query.filter(User.public_address == deets[6].lower()).first() # noqa if meme_exists: if not meme_exists.minted: meme_exists.minted = True