mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 04:22:35 +02:00
merged fusion fixes
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
from fastapi.param_functions import Depends
|
from fastapi.param_functions import Depends
|
||||||
from starlette.exceptions import HTTPException
|
from starlette.exceptions import HTTPException
|
||||||
from starlette.responses import HTMLResponse
|
from starlette.responses import HTMLResponse
|
||||||
from lnbits.core.models import User
|
from lnbits.core.models import User
|
||||||
>>>>>>> f827d2ce181d97368161d46ab8de2e9f061b9872
|
|
||||||
from lnbits.core.crud import get_wallet
|
from lnbits.core.crud import get_wallet
|
||||||
from lnbits.decorators import check_user_exists
|
from lnbits.decorators import check_user_exists
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
@@ -37,11 +37,7 @@ from .crud import (
|
|||||||
async def api_forms_get(r: Request, all_wallets: bool = Query(False), wallet: WalletTypeInfo = Depends(get_key_type)):
|
async def api_forms_get(r: Request, all_wallets: bool = Query(False), wallet: WalletTypeInfo = Depends(get_key_type)):
|
||||||
wallet_ids = [wallet.wallet.id]
|
wallet_ids = [wallet.wallet.id]
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
if "all_wallets" in r.path_parameters:
|
|
||||||
=======
|
|
||||||
if all_wallets:
|
if all_wallets:
|
||||||
>>>>>>> f827d2ce181d97368161d46ab8de2e9f061b9872
|
|
||||||
wallet_ids = (await get_user(wallet.wallet.user)).wallet_ids
|
wallet_ids = (await get_user(wallet.wallet.user)).wallet_ids
|
||||||
|
|
||||||
return [form.dict() for form in await get_forms(wallet_ids)]
|
return [form.dict() for form in await get_forms(wallet_ids)]
|
||||||
|
Reference in New Issue
Block a user