Work on db cleanup tool

This commit is contained in:
Pablo Revilla
2025-09-18 07:40:25 -07:00
parent cad3051e7f
commit 6eb1cdbd2d

View File

@@ -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)