This commit is contained in:
2026-02-20 14:36:54 +00:00
parent ac2b23c459
commit 121cc91ad1
2 changed files with 2 additions and 1 deletions

View File

@@ -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'])

View File

@@ -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>