let's use unique function names

so mypy is not confused
This commit is contained in:
Pavol Rusnak
2022-12-30 00:12:46 +01:00
parent b1e08744ff
commit f7a977ecc8
6 changed files with 7 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ async def api_hits(
@boltcards_ext.get("/api/v1/refunds") @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) g: WalletTypeInfo = Depends(get_key_type), all_wallets: bool = Query(False)
): ):
wallet_ids = [g.wallet.id] 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) @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) invoice = await get_invoice(invoice_id)
if not invoice: if not invoice:

View File

@@ -24,7 +24,7 @@ async def index(request: Request, user: User = Depends(check_user_exists)):
@nostrnip5_ext.get("/signup/{domain_id}", response_class=HTMLResponse) @nostrnip5_ext.get("/signup/{domain_id}", response_class=HTMLResponse)
async def index(request: Request, domain_id: str): async def signup(request: Request, domain_id: str):
domain = await get_domain(domain_id) domain = await get_domain(domain_id)
if not domain: if not domain:
@@ -43,7 +43,7 @@ async def index(request: Request, domain_id: str):
@nostrnip5_ext.get("/rotate/{domain_id}/{address_id}", response_class=HTMLResponse) @nostrnip5_ext.get("/rotate/{domain_id}/{address_id}", response_class=HTMLResponse)
async def index(request: Request, domain_id: str, address_id: str): async def rotate(request: Request, domain_id: str, address_id: str):
domain = await get_domain(domain_id) domain = await get_domain(domain_id)
address = await get_address(domain_id, address_id) address = await get_address(domain_id, address_id)

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}") @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) theme = await get_theme(theme_id)
if not theme: if not theme:

View File

@@ -292,7 +292,7 @@ async def api_psbt_create(
@watchonly_ext.put("/api/v1/psbt/utxos") @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) req: Request, w: WalletTypeInfo = Depends(require_admin_key)
): ):
"""Extract previous unspent transaction outputs (tx_id, vout) from PSBT""" """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) @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) link = await get_withdraw_link(link_id)
if not link: if not link:
raise HTTPException( raise HTTPException(