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