-
This commit is contained in:
parent
cf2c40e5b4
commit
ebd558a690
4
app.py
4
app.py
@ -24,7 +24,7 @@ def main():
|
||||
if db.get_user_bytoken(auth_token) is None:
|
||||
return redirect("/login")
|
||||
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')
|
||||
@ -33,7 +33,7 @@ def login():
|
||||
if auth_token != "" or auth_token is not None:
|
||||
if db.get_user_bytoken(auth_token) is not None:
|
||||
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')
|
||||
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
||||
<tr>
|
||||
<th>Nazwa maszyny(token)</th>
|
||||
<th>Obraz</th>
|
||||
<th>Czas uruchomienia ({{ timezone }})</th>
|
||||
<th>Czas uruchomienia (UTC)</th>
|
||||
<th>IP uVPN</th>
|
||||
<th>IP lokalne</th>
|
||||
<th></th>
|
||||
|
Loading…
Reference in New Issue
Block a user