clean up (black, sort)
This commit is contained in:
@@ -1,29 +1,22 @@
|
||||
from fastapi.params import Depends
|
||||
from fastapi.param_functions import Query
|
||||
from pydantic.main import BaseModel
|
||||
|
||||
from http import HTTPStatus
|
||||
|
||||
from fastapi.param_functions import Query
|
||||
from fastapi.params import Depends
|
||||
from lnurl.exceptions import InvalidUrl as LnurlInvalidUrl # type: ignore
|
||||
from starlette.exceptions import HTTPException
|
||||
from starlette.requests import Request
|
||||
from starlette.responses import HTMLResponse, JSONResponse # type: ignore
|
||||
|
||||
from lnbits.core.crud import get_user
|
||||
from lnbits.decorators import WalletTypeInfo, get_key_type
|
||||
|
||||
from . import withdraw_ext
|
||||
from .crud import (create_withdraw_link,
|
||||
delete_withdraw_link, get_hash_check, get_withdraw_link,
|
||||
get_withdraw_links, update_withdraw_link)
|
||||
from .models import CreateWithdrawData
|
||||
|
||||
# from fastapi import FastAPI, Query, Response
|
||||
|
||||
from . import withdraw_ext
|
||||
from .crud import (
|
||||
create_withdraw_link,
|
||||
get_withdraw_link,
|
||||
get_withdraw_links,
|
||||
update_withdraw_link,
|
||||
delete_withdraw_link,
|
||||
create_hash_check,
|
||||
get_hash_check,
|
||||
)
|
||||
|
||||
|
||||
@withdraw_ext.get("/api/v1/links", status_code=HTTPStatus.OK)
|
||||
|
||||
Reference in New Issue
Block a user