From 53dc378d88e09b2925d8ddd41b7fda9b7d32f3c4 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 6 Nov 2023 06:35:20 -0700 Subject: [PATCH] Formatting --- frigate/app.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frigate/app.py b/frigate/app.py index 2bdb90df5..1535eeaf6 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -280,7 +280,9 @@ class FrigateApp: logger.error("Unable to write to /config to save DB state") def cleanup_timeline_db(db: SqliteExtDatabase) -> None: - db.execute_sql("DELETE FROM timeline WHERE source_id NOT IN (SELECT id FROM event);") + db.execute_sql( + "DELETE FROM timeline WHERE source_id NOT IN (SELECT id FROM event);" + ) try: with open(f"{CONFIG_DIR}/.timeline", "w") as f: @@ -303,8 +305,8 @@ class FrigateApp: router = Router(migrate_db) router.run() - # this is a temporary check to clean up user DB from beta - # will be removed before final release + # this is a temporary check to clean up user DB from beta + # will be removed before final release if not os.path.exists(f"{CONFIG_DIR}/.timeline"): cleanup_timeline_db(migrate_db)