From c397d4c3c4f7c6894d839a7f34007adcb712b7d1 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 20 Apr 2021 00:08:55 +0100 Subject: [PATCH] changed amount --- lnbits/extensions/copilot/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/copilot/tasks.py b/lnbits/extensions/copilot/tasks.py index e5b311049..b99821c91 100644 --- a/lnbits/extensions/copilot/tasks.py +++ b/lnbits/extensions/copilot/tasks.py @@ -38,18 +38,18 @@ async def on_invoice_paid(payment: Payment) -> None: jsonify({"message": "Copilot link link does not exist."}), HTTPStatus.NOT_FOUND, ) - if int(copilot.animation1threshold) and int(amount) > copilot.animation1threshold: + if int(copilot.animation1threshold) and int(payment.amount) > copilot.animation1threshold: data = copilot.animation1 webhook = copilot.animation1webhook if ( int(copilot.animation2threshold) - and int(amount) > copilot.animation2threshold + and int(payment.amount) > copilot.animation2threshold ): data = copilot.animation2 webhook = copilot.animation1webhook if ( int(copilot.animation3threshold) - and int(amount) > copilot.animation3threshold + and int(payment.amount) > copilot.animation3threshold ): data = copilot.animation3 webhook = copilot.animation1webhook