mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-30 04:32:01 +02:00
Update views.py
This commit is contained in:
parent
6f26032744
commit
1e2c47fdcd
@ -21,7 +21,7 @@ def index():
|
|||||||
# Get all the data
|
# Get all the data
|
||||||
with open_db() as db:
|
with open_db() as db:
|
||||||
user_wallets = db.fetchall("SELECT * FROM wallets WHERE user = ?", (usr,))
|
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]
|
user_ext = [v[0] for v in user_ext]
|
||||||
|
|
||||||
with open_ext_db("withdraw") as withdraw_ext_db:
|
with open_ext_db("withdraw") as withdraw_ext_db:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user