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:
|
if total_percent > 100:
|
||||||
logger.error("splitpayment: total percent adds up to more than 100%")
|
logger.error("splitpayment: total percent adds up to more than 100%")
|
||||||
return
|
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")
|
logger.trace(f"splitpayments: performing split payments to {len(targets)} targets")
|
||||||
|
|
||||||
|
|
@ -52,7 +49,8 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||||
return
|
return
|
||||||
|
|
||||||
for target in targets:
|
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 or target.percent > 0:
|
||||||
|
|
||||||
if tagged:
|
if tagged:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue