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