a
This commit is contained in:
@@ -34,6 +34,7 @@ def mainpage():
|
|||||||
cursor.execute("SELECT name, time FROM items ORDER BY name")
|
cursor.execute("SELECT name, time FROM items ORDER BY name")
|
||||||
items = cursor.fetchall()
|
items = cursor.fetchall()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
print(items)
|
||||||
return render_template('index.html', title='BS Shutdown', items=items)
|
return render_template('index.html', title='BS Shutdown', items=items)
|
||||||
|
|
||||||
@app.route('/submit', methods =['POST'])
|
@app.route('/submit', methods =['POST'])
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<div class="d-flex justify-content-between align-items-center py-2">
|
<div class="d-flex justify-content-between align-items-center py-2">
|
||||||
<span class="text-white">{{ item.name }}</span>
|
<span class="text-white">{{ item.name }}</span>
|
||||||
{% if item.noshutdown %}
|
{% if item.noshutdown == 1 %}
|
||||||
<span class="text-success">OUI</span>
|
<span class="text-success">OUI</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-danger">NON</span>
|
<span class="text-danger">NON</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user