FIX: issues and improvements to frontend, add lnurlp/lnurladdress, remove split by tag feature (#4)

* deinitialize task
* rework of frontend
* add lnurl and lightningaddresses
* substract fee_reserve from external split, for potential routing fee, add a warning to ui
This commit is contained in:
dni ⚡ 2023-03-24 21:03:33 +01:00 committed by GitHub
commit 5bb234b797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 269 additions and 344 deletions

View file

@ -1,4 +1,5 @@
import asyncio
from typing import List
from fastapi import APIRouter
from fastapi.staticfiles import StaticFiles
@ -9,6 +10,8 @@ from lnbits.tasks import catch_everything_and_restart
db = Database("ext_splitpayments")
scheduled_tasks: List[asyncio.Task] = []
splitpayments_static_files = [
{
"path": "/splitpayments/static",
@ -32,4 +35,5 @@ from .views_api import * # noqa: F401,F403
def splitpayments_start():
loop = asyncio.get_event_loop()
loop.create_task(catch_everything_and_restart(wait_for_paid_invoices))
task = loop.create_task(catch_everything_and_restart(wait_for_paid_invoices))
scheduled_tasks.append(task)