From 1e2c47fdcd2f1c6229c2e1999d73cacb62fb09c5 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Sun, 23 Feb 2020 00:44:56 +0000 Subject: [PATCH] Update views.py --- lnbits/extensions/withdraw/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/withdraw/views.py b/lnbits/extensions/withdraw/views.py index f775fb702..8bd78c652 100644 --- a/lnbits/extensions/withdraw/views.py +++ b/lnbits/extensions/withdraw/views.py @@ -21,7 +21,7 @@ def index(): # Get all the data with open_db() as db: user_wallets = db.fetchall("SELECT * FROM wallets WHERE user = ?", (usr,)) - user_ext = db.fetchall("SELECT * FROM extensions WHERE user = ?", (usr,)) + user_ext = db.fetchall("SELECT extension FROM extensions WHERE user = ? AND active = 1", (usr,)) user_ext = [v[0] for v in user_ext] with open_ext_db("withdraw") as withdraw_ext_db: