From ff274e4eac4b84840019fd9f177ee6d9b96f97ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 2 Jan 2023 11:25:57 +0100 Subject: [PATCH] formatting --- lnbits/extensions/scrub/views.py | 2 +- lnbits/extensions/scrub/views_api.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lnbits/extensions/scrub/views.py b/lnbits/extensions/scrub/views.py index 509417e0d..489580133 100644 --- a/lnbits/extensions/scrub/views.py +++ b/lnbits/extensions/scrub/views.py @@ -1,4 +1,4 @@ -from fastapi import Request, Depends +from fastapi import Depends, Request from fastapi.templating import Jinja2Templates from starlette.responses import HTMLResponse diff --git a/lnbits/extensions/scrub/views_api.py b/lnbits/extensions/scrub/views_api.py index 289a80d20..eae0098d9 100644 --- a/lnbits/extensions/scrub/views_api.py +++ b/lnbits/extensions/scrub/views_api.py @@ -1,6 +1,6 @@ from http import HTTPStatus -from fastapi import Query, Depends +from fastapi import Depends, Query from starlette.exceptions import HTTPException from lnbits.core.crud import get_user @@ -40,9 +40,7 @@ async def api_links( @scrub_ext.get("/api/v1/links/{link_id}", status_code=HTTPStatus.OK) -async def api_link_retrieve( - link_id, wallet: WalletTypeInfo = Depends(get_key_type) -): +async def api_link_retrieve(link_id, wallet: WalletTypeInfo = Depends(get_key_type)): link = await get_scrub_link(link_id) if not link: