diff --git a/server/src/data/app.py b/server/src/data/app.py index 67b8ac7..c4cadea 100644 --- a/server/src/data/app.py +++ b/server/src/data/app.py @@ -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']) diff --git a/server/src/data/templates/index.html b/server/src/data/templates/index.html index a202b6e..1fb5a4c 100644 --- a/server/src/data/templates/index.html +++ b/server/src/data/templates/index.html @@ -44,7 +44,7 @@ {% for item in items %}
{{ item.name }} - {% if item.noshutdown %} + {% if item.noshutdown == 1 %} OUI {% else %} NON