From c7fd836760e7d71cb071d9e53d77b9e21c1027e8 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 6 Jan 2023 14:40:42 +0000 Subject: [PATCH] added comment --- lnbits/extensions/example/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/example/tasks.py b/lnbits/extensions/example/tasks.py index 8788ef689..677b3cff2 100644 --- a/lnbits/extensions/example/tasks.py +++ b/lnbits/extensions/example/tasks.py @@ -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 \ No newline at end of file