This commit is contained in:
Mateusz779 2023-04-21 11:02:06 +02:00
parent cf2c40e5b4
commit ebd558a690
2 changed files with 3 additions and 3 deletions

4
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.machines, timezone=config.timezone) return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines)
@app.route('/login') @app.route('/login')
@ -33,7 +33,7 @@ def login():
if auth_token != "" or auth_token is not None: if auth_token != "" or auth_token is not None:
if db.get_user_bytoken(auth_token) is not None: if db.get_user_bytoken(auth_token) is not None:
machines_all = db.get_machines() machines_all = db.get_machines()
return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines, timezone=config.timezone) return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines)
return render_template('login.html') return render_template('login.html')

View File

@ -64,7 +64,7 @@
<tr> <tr>
<th>Nazwa maszyny(token)</th> <th>Nazwa maszyny(token)</th>
<th>Obraz</th> <th>Obraz</th>
<th>Czas uruchomienia ({{ timezone }})</th> <th>Czas uruchomienia (UTC)</th>
<th>IP uVPN</th> <th>IP uVPN</th>
<th>IP lokalne</th> <th>IP lokalne</th>
<th></th> <th></th>