mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-10 17:26:15 +01:00
added comment
This commit is contained in:
parent
7b3bab096e
commit
c7fd836760
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# views_api.py is for you API endpoints that could be hit by another service
|
||||
# tasks.py is for asynchronous when invoices get paid
|
||||
|
||||
# add your dependencies here
|
||||
|
||||
|
@ -17,7 +17,7 @@ async def wait_for_paid_invoices():
|
|||
await on_invoice_paid(payment)
|
||||
|
||||
async def on_invoice_paid(payment: Payment) -> None:
|
||||
if payment.extra.get("tag") != "example":
|
||||
if payment.extra.get("tag") != "example": # Will grab any payment with the tag "example"
|
||||
logger.debug(payment)
|
||||
# Do something
|
||||
return
|
Loading…
Add table
Reference in a new issue