From 4ad2f62ba83d3b2df83b5c008b46eb267327b737 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 6 Jun 2023 08:24:51 -0600 Subject: [PATCH] Formatting --- frigate/app.py | 2 +- frigate/record/record.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/app.py b/frigate/app.py index 845e5ce28..f31bd9828 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -210,7 +210,7 @@ class FrigateApp: pragmas={ "auto_vacuum": "FULL", # Does not defragment database "cache_size": -512 * 1000, # 512MB of cache, - 'synchronous': 'NORMAL', # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous + "synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous }, timeout=60, ) diff --git a/frigate/record/record.py b/frigate/record/record.py index 8ee8b798b..9d3106d0f 100644 --- a/frigate/record/record.py +++ b/frigate/record/record.py @@ -40,9 +40,9 @@ def manage_recordings( db = SqliteQueueDatabase( config.database.path, pragmas={ - "auto_vacuum": "FULL", # Does not defragment database - "cache_size": -512 * 1000, # 512MB of cache - 'synchronous': 'NORMAL', # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous + "auto_vacuum": "FULL", # Does not defragment database + "cache_size": -512 * 1000, # 512MB of cache + "synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous }, timeout=60, )