Update checklist.py

This commit is contained in:
SpudGunMan
2025-10-29 11:37:19 -07:00
parent 70f072d222
commit e4c51c97a1
+2 -2
View File
@@ -36,14 +36,14 @@ def checkin(name, date, time, location, notes):
c = conn.cursor()
try:
c.execute(
"INSERT INTO checkin (checkin_name, checkin_date, checkin_time, location, checkin_notes, removed) VALUES (?, ?, ?, ?, 0, 0)",
"INSERT INTO checkin (checkin_name, checkin_date, checkin_time, location, checkin_notes, removed, approved) VALUES (?, ?, ?, ?, ?, 0, 0)",
(name, date, time, location, notes)
)
except sqlite3.OperationalError as e:
if "no such table" in str(e):
initialize_checklist_database()
c.execute(
"INSERT INTO checkin (checkin_name, checkin_date, checkin_time, location, checkin_notes, removed) VALUES (?, ?, ?, ?, 0, 0)",
"INSERT INTO checkin (checkin_name, checkin_date, checkin_time, location, checkin_notes, removed, approved) VALUES (?, ?, ?, ?, ?, 0, 0)",
(name, date, time, location, notes)
)
else: