From e9a820f07fb5a965bf7e574bc929228aec7e9141 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 17 Oct 2026 05:30:34 -0700 Subject: [PATCH] initialize rates setting --- api/database.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/database.py b/api/database.py index 0c86ab1..e580696 100644 --- a/api/database.py +++ b/api/database.py @@ -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() # ---------------------------------------------------------------------------