From 096634269b56c4d1f2ab6d9359c500f1b23e3369 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 17 Oct 2026 05:39:52 -0700 Subject: [PATCH] fix rates init --- api/database.py | 2 +- web/add_provider.php | 2 +- web/index.php | 0 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 web/index.php diff --git a/api/database.py b/api/database.py index e580696..430e818 100644 --- a/api/database.py +++ b/api/database.py @@ -81,7 +81,7 @@ def initialize_db() -> None: # Use JSON string for array values cursor.execute( "INSERT OR REPLACE INTO settings (name, value) VALUES (?, ?)", - ("rate_options", json.dumps(["half_hour", "hour"])), + ("rate_options", "half_hour,hour"), ) conn.commit() diff --git a/web/add_provider.php b/web/add_provider.php index 5b77eda..519c728 100644 --- a/web/add_provider.php +++ b/web/add_provider.php @@ -114,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
diff --git a/web/index.php b/web/index.php deleted file mode 100644 index e69de29..0000000