This commit is contained in:
Mateusz779 2023-04-19 09:43:44 +02:00
parent 820b839af4
commit 9795f4295f

2
app.py
View File

@ -24,7 +24,7 @@ def main():
if db.get_user_bytoken(auth_token) is None: if db.get_user_bytoken(auth_token) is None:
return redirect("/login") return redirect("/login")
machines_all = db.get_machines() machines_all = db.get_machines()
return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all) return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines)
@app.route('/login') @app.route('/login')