mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 06:48:02 +01:00
calle's suggestion
This commit is contained in:
parent
9e96025dc7
commit
41faf42afe
1 changed files with 1 additions and 2 deletions
|
@ -43,8 +43,7 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
amount_to_split = payment.amount
|
||||
|
||||
if payment.extra.get("amount"):
|
||||
_amount = payment.extra.get("amount") or 0
|
||||
amount_to_split = _amount * 1000
|
||||
amount_to_split = (payment.extra.get("amount") or 0) * 1000
|
||||
|
||||
for target in targets:
|
||||
if target.percent > 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue