This commit is contained in:
2026-02-20 13:40:04 +00:00
parent 5063d78198
commit c08f81bd03
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ def submit():
value = request.form.get("query")
time_value = request.form.get("time")
noshutdown = request.form.get("noshutdown")
if not value or not time_value:
if not value or (not time_value or not noshutdown):
return redirect(url_for("mainpage"))
conn = get_db_connection()
cursor = conn.cursor()

View File

@@ -46,9 +46,9 @@
<div class="d-flex justify-content-between align-items-center py-2">
<span class="text-white">{{ item.name }}</span>
{% if item.noshutdown %}
<span class="text-green">OUI</span>
<span class="text-success">OUI</span>
{% else %}
<span class="text-red">NON</span>
<span class="text-danger">NON</span>
<span class="text-white">{{ item.time }}</span>
{% endif %}
<form method="post" action="/delete" class="m-0 p-0">