diff --git a/lnurl.py b/lnurl.py index 53dd575..e188e65 100644 --- a/lnurl.py +++ b/lnurl.py @@ -86,6 +86,7 @@ async def api_lnurl_pay_cb( ## here and crud.py will allow muliple pulls #### ################################################# + @myextension_ext.get( "/api/v1/lnurl/withdraw/{myextension_id}/{tickerhash}", status_code=HTTPStatus.OK, diff --git a/migrations.py b/migrations.py index b3d4f76..207402d 100644 --- a/migrations.py +++ b/migrations.py @@ -1,4 +1,5 @@ -# The migration file is like a blockchain, never edit only add! +# the migration file is where you build your database tables +# If you create a new release for your extension , remeember the migration file is like a blockchain, never edit only add! async def m001_initial(db): diff --git a/models.py b/models.py index 1f91cfe..6850e9b 100644 --- a/models.py +++ b/models.py @@ -1,5 +1,4 @@ -# Models for retrieving data from the database -# Includes some classmethods where we can add some logic to the data +# Data models for your extension from sqlite3 import Row from typing import Optional, List diff --git a/tasks.py b/tasks.py index 545faf6..f7cad87 100644 --- a/tasks.py +++ b/tasks.py @@ -11,11 +11,10 @@ from .crud import get_myextension, update_myextension ####################################### -########## RUN YOUR TASKS HERE ######### +########## RUN YOUR TASKS HERE ######## ####################################### - -# the usual task is to listen to invoices related to this extension +# The usual task is to listen to invoices related to this extension async def wait_for_paid_invoices(): @@ -27,7 +26,7 @@ async def wait_for_paid_invoices(): await on_invoice_paid(payment) -# do somethhing when an invoice related top this extension is paid +# Do somethhing when an invoice related top this extension is paid async def on_invoice_paid(payment: Payment) -> None: