mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 14:40:47 +01:00
removed as it breaks tags. there's no % in tags
This commit is contained in:
parent
6a262428cd
commit
319e28ef3f
1 changed files with 2 additions and 4 deletions
|
@ -36,9 +36,6 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
if total_percent > 100:
|
||||
logger.error("splitpayment: total percent adds up to more than 100%")
|
||||
return
|
||||
if not all([target.percent > 0 for target in targets]):
|
||||
logger.error("splitpayment: not all percentages are positive > 0")
|
||||
return
|
||||
|
||||
logger.trace(f"splitpayments: performing split payments to {len(targets)} targets")
|
||||
|
||||
|
@ -52,7 +49,8 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
return
|
||||
|
||||
for target in targets:
|
||||
tagged = target.tag in payment.extra
|
||||
tagged = target.tag in payment.extra.values()
|
||||
|
||||
if tagged or target.percent > 0:
|
||||
|
||||
if tagged:
|
||||
|
|
Loading…
Add table
Reference in a new issue