initialize rates setting

This commit is contained in:
matt committed 2026-10-17 05:30:34 -07:00
1 parent 37f1008a66
commit e9a820f07f
1 file changed
+7
+7
View File
@@ -77,6 +77,13 @@ def initialize_db() -> None:
"""
)
# Initialize default settings
# Use JSON string for array values
cursor.execute(
"INSERT OR REPLACE INTO settings (name, value) VALUES (?, ?)",
("rate_options", json.dumps(["half_hour", "hour"])),
)
conn.commit()
# ---------------------------------------------------------------------------