mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-22 15:57:28 +02:00
Merge branch 'master' into StreamerCopilot
This commit is contained in:
@@ -20,6 +20,7 @@ async def wait_for_paid_invoices(invoice_paid_chan: trio.MemoryReceiveChannel):
|
|||||||
async for payment in invoice_paid_chan:
|
async for payment in invoice_paid_chan:
|
||||||
await on_invoice_paid(payment)
|
await on_invoice_paid(payment)
|
||||||
|
|
||||||
|
|
||||||
async def on_invoice_paid(payment: Payment) -> None:
|
async def on_invoice_paid(payment: Payment) -> None:
|
||||||
if "lnticket" != payment.extra.get("tag"):
|
if "lnticket" != payment.extra.get("tag"):
|
||||||
# not a lnticket invoice
|
# not a lnticket invoice
|
||||||
@@ -33,4 +34,4 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||||||
await payment.set_pending(False)
|
await payment.set_pending(False)
|
||||||
await set_ticket_paid(payment.payment_hash)
|
await set_ticket_paid(payment.payment_hash)
|
||||||
_ticket = await get_ticket(payment.checking_id)
|
_ticket = await get_ticket(payment.checking_id)
|
||||||
print('ticket', _ticket)
|
print("ticket", _ticket)
|
||||||
|
@@ -29,5 +29,5 @@ async def display(form_id):
|
|||||||
form_name=form.name,
|
form_name=form.name,
|
||||||
form_desc=form.description,
|
form_desc=form.description,
|
||||||
form_costpword=form.costpword,
|
form_costpword=form.costpword,
|
||||||
form_wallet=wallet.inkey
|
form_wallet=wallet.inkey,
|
||||||
)
|
)
|
||||||
|
@@ -98,7 +98,6 @@ async def api_lnurl_callback(unique_hash):
|
|||||||
HTTPStatus.OK,
|
HTTPStatus.OK,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
usescsv = ""
|
usescsv = ""
|
||||||
for x in range(1, link.uses - link.used):
|
for x in range(1, link.uses - link.used):
|
||||||
|
Reference in New Issue
Block a user