From 31b1c0d1d532959664565037b3a2287b68954384 Mon Sep 17 00:00:00 2001 From: benarc Date: Tue, 1 Dec 2020 22:53:52 +0000 Subject: [PATCH] Fixed tpos links not being fetched --- lnbits/extensions/tpos/views_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lnbits/extensions/tpos/views_api.py b/lnbits/extensions/tpos/views_api.py index 717beaf3e..22980fcef 100644 --- a/lnbits/extensions/tpos/views_api.py +++ b/lnbits/extensions/tpos/views_api.py @@ -13,9 +13,8 @@ from .crud import create_tpos, get_tpos, get_tposs, delete_tpos @api_check_wallet_key("invoice") async def api_tposs(): wallet_ids = [g.wallet.id] - if "all_wallets" in request.args: - wallet_ids = await get_user(g.wallet.user).wallet_ids + wallet_ids = (await get_user(g.wallet.user)).wallet_ids return jsonify([tpos._asdict() for tpos in await get_tposs(wallet_ids)]), HTTPStatus.OK