From 6eb1cdbd2d4a02acb5213118a0336e836f52bf20 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Thu, 18 Sep 2025 07:40:25 -0700 Subject: [PATCH] Work on db cleanup tool --- startdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/startdb.py b/startdb.py index be19a85..541f079 100644 --- a/startdb.py +++ b/startdb.py @@ -112,9 +112,9 @@ async def main(): mqtt_topics = json.loads(CONFIG["mqtt"]["topics"]) db_file = CONFIG["database"]["connection_string"].replace("sqlite+aiosqlite:///", "") - cleanup_enabled = get_bool(CONFIG, "cleanup", "enabled", True) + cleanup_enabled = get_bool(CONFIG, "cleanup", "enabled", False) cleanup_days = get_int(CONFIG, "cleanup", "days_to_keep", 14) - vacuum_db = get_bool(CONFIG, "cleanup", "vacuum", True) + vacuum_db = get_bool(CONFIG, "cleanup", "vacuum", False) cleanup_hour = get_int(CONFIG, "cleanup", "hour", 2) cleanup_minute = get_int(CONFIG, "cleanup", "minute", 0) batch_size = get_int(CONFIG, "cleanup", "batch_size", 100)