Skip to content

Commit

Permalink
fix: retirement insert
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi committed Oct 21, 2024
1 parent 60a08f1 commit c2e6ca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index_retires.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _index_retires(pg_conn, _client, _chain_num):
retirement = (
normalize["type"],
normalize["amount"],
normalize["batch_denom"], # TODO remove once app fully migrated
normalize["batch_denoms"],
normalize["jurisdiction"],
normalize["owner"],
Expand All @@ -78,7 +79,7 @@ def _index_retires(pg_conn, _client, _chain_num):
normalize["tx_hash"],
)
_cur.execute(
"INSERT INTO retirements (type, amount, batch_denoms, jurisdiction, owner, reason, block_height, chain_num, tx_idx, msg_idx, timestamp, tx_hash) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
"INSERT INTO retirements (type, amount, batch_denom, batch_denoms, jurisdiction, owner, reason, block_height, chain_num, tx_idx, msg_idx, timestamp, tx_hash) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
retirement,
)
pg_conn.commit()
Expand Down

0 comments on commit c2e6ca1

Please sign in to comment.