a
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user