Merge branch 'master' into StreamerCopilot

This commit is contained in:
Ben Arc 2021-06-24 01:42:37 +01:00
commit 06f05c75bb
3 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@ async def wait_for_paid_invoices(invoice_paid_chan: trio.MemoryReceiveChannel):
async for payment in invoice_paid_chan:
await on_invoice_paid(payment)
async def on_invoice_paid(payment: Payment) -> None:
if "lnticket" != payment.extra.get("tag"):
# not a lnticket invoice
@ -33,4 +34,4 @@ async def on_invoice_paid(payment: Payment) -> None:
await payment.set_pending(False)
await set_ticket_paid(payment.payment_hash)
_ticket = await get_ticket(payment.checking_id)
print('ticket', _ticket)
print("ticket", _ticket)

View File

@ -29,5 +29,5 @@ async def display(form_id):
form_name=form.name,
form_desc=form.description,
form_costpword=form.costpword,
form_wallet=wallet.inkey
form_wallet=wallet.inkey,
)

View File

@ -98,7 +98,6 @@ async def api_lnurl_callback(unique_hash):
HTTPStatus.OK,
)
try:
usescsv = ""
for x in range(1, link.uses - link.used):