This commit is contained in:
2026-02-20 14:35:03 +00:00
parent 10675cffbc
commit ac2b23c459

View File

@@ -46,7 +46,7 @@ def submit():
if noshutdown == 0 and not time_value: if noshutdown == 0 and not time_value:
return redirect(url_for("mainpage")) return redirect(url_for("mainpage"))
if noshutdown == 1: if noshutdown == 1:
time_value = None time_value = 'None'
conn = get_db_connection() conn = get_db_connection()
cursor = conn.cursor() cursor = conn.cursor()
cursor.execute('SELECT 1 FROM items WHERE name = ?', (value,)) cursor.execute('SELECT 1 FROM items WHERE name = ?', (value,))