mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-26 20:06:17 +02:00
clean up
This commit is contained in:
@@ -1,36 +1,22 @@
|
|||||||
from fastapi import Request
|
|
||||||
import hashlib
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
|
from fastapi import Request
|
||||||
|
from fastapi.param_functions import Query
|
||||||
|
from fastapi.params import Depends
|
||||||
from starlette.exceptions import HTTPException
|
from starlette.exceptions import HTTPException
|
||||||
|
|
||||||
from starlette.responses import HTMLResponse, JSONResponse # type: ignore
|
from lnbits.decorators import WalletTypeInfo, get_key_type
|
||||||
import base64
|
|
||||||
from lnbits.core.crud import get_user
|
|
||||||
from lnbits.core.services import create_invoice, check_invoice_status
|
|
||||||
import json
|
|
||||||
from typing import Optional
|
|
||||||
from fastapi.params import Depends
|
|
||||||
from fastapi.param_functions import Query
|
|
||||||
from .models import Copilots, CreateCopilotData
|
|
||||||
from lnbits.decorators import (
|
|
||||||
WalletAdminKeyChecker,
|
|
||||||
WalletInvoiceKeyChecker,
|
|
||||||
api_validate_post_request,
|
|
||||||
check_user_exists,
|
|
||||||
WalletTypeInfo,
|
|
||||||
get_key_type,
|
|
||||||
api_validate_post_request,
|
|
||||||
)
|
|
||||||
from .views import updater
|
|
||||||
import httpx
|
|
||||||
from . import copilot_ext
|
from . import copilot_ext
|
||||||
from .crud import (
|
from .crud import (
|
||||||
create_copilot,
|
create_copilot,
|
||||||
update_copilot,
|
delete_copilot,
|
||||||
get_copilot,
|
get_copilot,
|
||||||
get_copilots,
|
get_copilots,
|
||||||
delete_copilot,
|
update_copilot,
|
||||||
)
|
)
|
||||||
|
from .models import CreateCopilotData
|
||||||
|
from .views import updater
|
||||||
|
|
||||||
#######################COPILOT##########################
|
#######################COPILOT##########################
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user