add: frontend

This commit is contained in:
2026-03-26 13:26:58 +00:00
parent 307199258b
commit 20fac5368d
+1 -1
View File
@@ -45,7 +45,7 @@ def get_db_connection():
def mainpage(): def mainpage():
conn = get_db_connection() conn = get_db_connection()
cursor = conn.cursor() cursor = conn.cursor()
cursor.execute("SELECT name, time, noshutdown FROM items ORDER BY name") cursor.execute("SELECT name, time, noshutdown, last_connection FROM items ORDER BY name")
items = cursor.fetchall() items = cursor.fetchall()
cursor.execute("SELECT default_time FROM val") cursor.execute("SELECT default_time FROM val")
default_time_row = cursor.fetchone() default_time_row = cursor.fetchone()