|
|
@ -13,6 +13,9 @@ bp = Blueprint("meta", "meta")
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
async def index():
|
|
|
|
async def index():
|
|
|
|
admin = User.select().first()
|
|
|
|
admin = User.select().first()
|
|
|
|
|
|
|
|
if not admin:
|
|
|
|
|
|
|
|
await flash("must setup admin first")
|
|
|
|
|
|
|
|
return redirect("/setup")
|
|
|
|
lws = LWS(admin.view_key)
|
|
|
|
lws = LWS(admin.view_key)
|
|
|
|
accounts = lws.list_accounts()
|
|
|
|
accounts = lws.list_accounts()
|
|
|
|
data = {}
|
|
|
|
data = {}
|
|
|
@ -20,7 +23,7 @@ async def index():
|
|
|
|
if status == "hidden":
|
|
|
|
if status == "hidden":
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
for account in accounts[status]:
|
|
|
|
for account in accounts[status]:
|
|
|
|
account["wallet"] = Wallet.select().where(Wallet.address ** account["address"]).first()
|
|
|
|
account["wallet"] = Wallet.select().where(Wallet.address ** account["address"]).order_by(Wallet.date.asc()).first()
|
|
|
|
account["status"] = status
|
|
|
|
account["status"] = status
|
|
|
|
data[account["address"]] = account
|
|
|
|
data[account["address"]] = account
|
|
|
|
return await render_template(
|
|
|
|
return await render_template(
|
|
|
|