initialize rates setting
This commit is contained in:
1 parent
37f1008a66
commit
e9a820f07f
1 file changed
+7
@@ -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()
|
conn.commit()
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user