From 59c6469bd1dedbd07b5e515a3101fa2215dcda12 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 14 Dec 2022 14:43:41 +0000 Subject: [PATCH] generalised tag search --- lnbits/extensions/splitpayments/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/splitpayments/tasks.py b/lnbits/extensions/splitpayments/tasks.py index a1832b63..33768805 100644 --- a/lnbits/extensions/splitpayments/tasks.py +++ b/lnbits/extensions/splitpayments/tasks.py @@ -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,