a
This commit is contained in:
@@ -41,7 +41,7 @@ def submit():
|
|||||||
value = request.form.get("query")
|
value = request.form.get("query")
|
||||||
time_value = request.form.get("time")
|
time_value = request.form.get("time")
|
||||||
noshutdown = request.form.get("noshutdown")
|
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"))
|
return redirect(url_for("mainpage"))
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|||||||
@@ -46,9 +46,9 @@
|
|||||||
<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 %}
|
||||||
<span class="text-green">OUI</span>
|
<span class="text-success">OUI</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-red">NON</span>
|
<span class="text-danger">NON</span>
|
||||||
<span class="text-white">{{ item.time }}</span>
|
<span class="text-white">{{ item.time }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form method="post" action="/delete" class="m-0 p-0">
|
<form method="post" action="/delete" class="m-0 p-0">
|
||||||
|
|||||||
Reference in New Issue
Block a user