Merge pull request #1260 from prusnak/duplicit-function-names

let's use unique function names
This commit is contained in:
calle 2023-01-03 11:28:11 +01:00 committed by GitHub
commit ef1871f40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ async def api_hits(
@boltcards_ext.get("/api/v1/refunds")
async def api_hits(
async def api_refunds(
g: WalletTypeInfo = Depends(get_key_type), all_wallets: bool = Query(False)
):
wallet_ids = [g.wallet.id]

View File

@ -30,7 +30,7 @@ async def index(request: Request, user: User = Depends(check_user_exists)):
@invoices_ext.get("/pay/{invoice_id}", response_class=HTMLResponse)
async def index(request: Request, invoice_id: str):
async def pay(request: Request, invoice_id: str):
invoice = await get_invoice(invoice_id)
if not invoice:

View File

@ -171,7 +171,7 @@ async def api_themes_retrieve(wallet: WalletTypeInfo = Depends(get_key_type)):
@satspay_ext.delete("/api/v1/themes/{theme_id}")
async def api_charge_delete(theme_id, wallet: WalletTypeInfo = Depends(get_key_type)):
async def api_theme_delete(theme_id, wallet: WalletTypeInfo = Depends(get_key_type)):
theme = await get_theme(theme_id)
if not theme:

View File

@ -292,7 +292,7 @@ async def api_psbt_create(
@watchonly_ext.put("/api/v1/psbt/utxos")
async def api_psbt_extract_tx(
async def api_psbt_utxos_tx(
req: Request, w: WalletTypeInfo = Depends(require_admin_key)
):
"""Extract previous unspent transaction outputs (tx_id, vout) from PSBT"""

View File

@ -117,7 +117,7 @@ async def print_qr(request: Request, link_id):
@withdraw_ext.get("/csv/{link_id}", response_class=HTMLResponse)
async def print_qr(request: Request, link_id):
async def csv(request: Request, link_id):
link = await get_withdraw_link(link_id)
if not link:
raise HTTPException(