generalised tag search

This commit is contained in:
ben 2022-12-14 14:43:41 +00:00
parent 4c3db72afc
commit 59c6469bd1

View File

@ -38,7 +38,7 @@ async def on_invoice_paid(payment: Payment) -> None:
logger.debug(f"checking if tagged for {len(targets)} targets")
tagged = False
for target in targets:
if payment.extra.get("tag") == target.tag:
if target.tag in payment.extra:
tagged = True
payment_hash, payment_request = await create_invoice(
wallet_id=target.wallet,