added comment

This commit is contained in:
ben 2023-01-06 14:40:42 +00:00
parent 7b3bab096e
commit c7fd836760

View file

@ -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