Skip to content

Commit

Permalink
fixed double fetchone
Browse files Browse the repository at this point in the history
  • Loading branch information
samedcildir committed Mar 19, 2024
1 parent 406803e commit 91ba568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brc20/sqlite/brc20_light_client_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ def fix_db_from_version(version):
print("Indexer version not found, db needs to be recreated from scratch, please run reset_init.py")
exit(1)
else:
db_version = cur.fetchone()[0]
db_version = temp[0]
if db_version != DB_VERSION:
print("DB version mismatch!!")
if db_version not in CAN_BE_FIXED_DB_VERSIONS:
Expand Down

0 comments on commit 91ba568

Please sign in to comment.