make
This commit is contained in:
parent
3149be8046
commit
26807c49f3
12 changed files with 1185 additions and 1028 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import asyncio
|
||||
|
||||
from fastapi import APIRouter
|
||||
from lnbits.tasks import create_permanent_unique_task
|
||||
from loguru import logger
|
||||
|
||||
from lnbits.tasks import create_permanent_unique_task
|
||||
from .crud import db
|
||||
from .tasks import handle_execution_queue, handle_nwc
|
||||
from .views import nwcprovider_router
|
||||
|
|
@ -24,6 +24,7 @@ nwcprovider_static_files = [
|
|||
|
||||
scheduled_tasks: list[asyncio.Task] = []
|
||||
|
||||
|
||||
def nwcprovider_stop():
|
||||
for task in scheduled_tasks:
|
||||
try:
|
||||
|
|
@ -40,6 +41,7 @@ def nwcprovider_start():
|
|||
)
|
||||
scheduled_tasks.append(task)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"db",
|
||||
"nwcprovider_ext",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue