mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 12:26:19 +02:00
equal of higher than threshold
This commit is contained in:
@@ -41,15 +41,15 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||
HTTPStatus.NOT_FOUND,
|
||||
)
|
||||
if copilot.animation1threshold:
|
||||
if int(payment.amount/1000) > copilot.animation1threshold:
|
||||
if int(payment.amount / 1000) >= copilot.animation1threshold:
|
||||
data = copilot.animation1
|
||||
webhook = copilot.animation1webhook
|
||||
if copilot.animation2threshold:
|
||||
if int(payment.amount/1000) > copilot.animation2threshold:
|
||||
if int(payment.amount / 1000) >= copilot.animation2threshold:
|
||||
data = copilot.animation2
|
||||
webhook = copilot.animation1webhook
|
||||
if copilot.animation3threshold:
|
||||
if int(payment.amount/1000) > copilot.animation3threshold:
|
||||
if int(payment.amount / 1000) >= copilot.animation3threshold:
|
||||
data = copilot.animation3
|
||||
webhook = copilot.animation1webhook
|
||||
if webhook:
|
||||
|
Reference in New Issue
Block a user