mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
Formatting
This commit is contained in:
parent
8b3df3edd8
commit
53dc378d88
@ -280,7 +280,9 @@ class FrigateApp:
|
|||||||
logger.error("Unable to write to /config to save DB state")
|
logger.error("Unable to write to /config to save DB state")
|
||||||
|
|
||||||
def cleanup_timeline_db(db: SqliteExtDatabase) -> None:
|
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:
|
try:
|
||||||
with open(f"{CONFIG_DIR}/.timeline", "w") as f:
|
with open(f"{CONFIG_DIR}/.timeline", "w") as f:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user