From 15de047bb882384d09993d26ea8deec14dc8f142 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Sun, 23 Feb 2020 00:42:22 +0000 Subject: [PATCH] Update __init__.py --- lnbits/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lnbits/__init__.py b/lnbits/__init__.py index 9f15e64..8811d46 100644 --- a/lnbits/__init__.py +++ b/lnbits/__init__.py @@ -261,9 +261,12 @@ def wallet(): """, (wallet_id,), ) + + user_ext = db.fetchall("SELECT extension FROM extensions WHERE user = ? AND active = 1", (usr,)) + user_ext = [v[0] for v in user_ext] return render_template( - "wallet.html", user_wallets=user_wallets, wallet=wallet, user=usr, transactions=transactions, + "wallet.html", user_wallets=user_wallets, wallet=wallet, user=usr, transactions=transactions, user_ext=user_ext )