included some checks for the thresholds
This commit is contained in:
parent
db5b3306cd
commit
b520d0d8b2
1 changed files with 10 additions and 16 deletions
|
|
@ -40,22 +40,16 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||||
jsonify({"message": "Copilot link link does not exist."}),
|
jsonify({"message": "Copilot link link does not exist."}),
|
||||||
HTTPStatus.NOT_FOUND,
|
HTTPStatus.NOT_FOUND,
|
||||||
)
|
)
|
||||||
if (
|
if copilot.animation1threshold:
|
||||||
int(copilot.animation1threshold)
|
if int(payment.amount) > copilot.animation1threshold:
|
||||||
and int(payment.amount) > copilot.animation1threshold
|
|
||||||
):
|
|
||||||
data = copilot.animation1
|
data = copilot.animation1
|
||||||
webhook = copilot.animation1webhook
|
webhook = copilot.animation1webhook
|
||||||
if (
|
if copilot.animation2threshold:
|
||||||
int(copilot.animation2threshold)
|
if int(payment.amount) > copilot.animation2threshold:
|
||||||
and int(payment.amount) > copilot.animation2threshold
|
|
||||||
):
|
|
||||||
data = copilot.animation2
|
data = copilot.animation2
|
||||||
webhook = copilot.animation1webhook
|
webhook = copilot.animation1webhook
|
||||||
if (
|
if copilot.animation3threshold:
|
||||||
int(copilot.animation3threshold)
|
if int(payment.amount) > copilot.animation3threshold:
|
||||||
and int(payment.amount) > copilot.animation3threshold
|
|
||||||
):
|
|
||||||
data = copilot.animation3
|
data = copilot.animation3
|
||||||
webhook = copilot.animation1webhook
|
webhook = copilot.animation1webhook
|
||||||
if webhook:
|
if webhook:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue