This commit is contained in:
2026-02-20 13:37:30 +00:00
parent a12366867d
commit 5063d78198
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ def submit():
conn.close() conn.close()
return redirect(url_for("mainpage")) return redirect(url_for("mainpage"))
cursor.execute( cursor.execute(
"INSERT INTO items (name, time, noshutdown) VALUES (?, ?)", "INSERT INTO items (name, time, noshutdown) VALUES (?, ?, ?)",
(value, time_value, noshutdown) (value, time_value, noshutdown)
) )
conn.commit() conn.commit()

View File

@@ -66,7 +66,7 @@
</div> </div>
<script> <script>
const tickCheckbox = document.getElementById('tick'); // script pr desactiver la selection de l'heure si whitelist const tickCheckbox = document.getElementById('noshutdown'); // script pr desactiver la selection de l'heure si whitelist
const timeSelect = document.getElementById('time-select'); const timeSelect = document.getElementById('time-select');
timeSelect.disabled = tickCheckbox.checked; timeSelect.disabled = tickCheckbox.checked;