removed offensive print and clean up
This commit is contained in:
parent
8dfd334daa
commit
1aeb4fe70c
1 changed files with 3 additions and 5 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
|
from http import HTTPStatus
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
from starlette.exceptions import HTTPException
|
||||||
|
|
||||||
from lnbits.core import db as core_db
|
from lnbits.core import db as core_db
|
||||||
from lnbits.core.models import Payment
|
from lnbits.core.models import Payment
|
||||||
|
|
@ -8,10 +11,6 @@ from lnbits.tasks import register_invoice_listener
|
||||||
|
|
||||||
from .crud import get_copilot
|
from .crud import get_copilot
|
||||||
from .views import updater
|
from .views import updater
|
||||||
import shortuuid
|
|
||||||
from http import HTTPStatus
|
|
||||||
from starlette.exceptions import HTTPException
|
|
||||||
from starlette.responses import HTMLResponse, JSONResponse # type: ignore
|
|
||||||
|
|
||||||
|
|
||||||
async def wait_for_paid_invoices():
|
async def wait_for_paid_invoices():
|
||||||
|
|
@ -29,7 +28,6 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||||
if "copilot" != payment.extra.get("tag"):
|
if "copilot" != payment.extra.get("tag"):
|
||||||
# not an copilot invoice
|
# not an copilot invoice
|
||||||
return
|
return
|
||||||
print("cunt")
|
|
||||||
|
|
||||||
copilot = await get_copilot(payment.extra.get("copilotid", -1))
|
copilot = await get_copilot(payment.extra.get("copilotid", -1))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue