Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 17, 2025
1 parent a252f30 commit 81bd95c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion counterparty-core/counterpartycore/lib/api/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,10 @@ def get_mempool_events_by_addresses(
"""
where = []
for address in addresses.split(","):
where.append({"addresses__like": f"%{address}%", "event__in": event_name.split(",")})
where_address = {"addresses__like": f"%{address}%"}
if event_name:
where_address["event__in"] = event_name.split(",")
where.append(where_address)
select = "tx_hash, event, bindings AS params, timestamp"
result = select_rows(
ledger_db,
Expand Down

0 comments on commit 81bd95c

Please sign in to comment.