From 6ebad84160653c44d35174b24a8df21c0ba91064 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:17:57 -0500 Subject: [PATCH] initialize path before calling super() (#14203) --- frigate/db/sqlitevecq.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frigate/db/sqlitevecq.py b/frigate/db/sqlitevecq.py index 51035ee4f..b37e11717 100644 --- a/frigate/db/sqlitevecq.py +++ b/frigate/db/sqlitevecq.py @@ -6,10 +6,9 @@ from playhouse.sqliteq import SqliteQueueDatabase class SqliteVecQueueDatabase(SqliteQueueDatabase): def __init__(self, *args, load_vec_extension: bool = False, **kwargs) -> None: self.load_vec_extension: bool = load_vec_extension - super().__init__(*args, **kwargs) - # no extension necessary, sqlite will load correctly for each platform self.sqlite_vec_path = "/usr/local/lib/vec0" + super().__init__(*args, **kwargs) def _connect(self, *args, **kwargs) -> sqlite3.Connection: conn: sqlite3.Connection = super()._connect(*args, **kwargs)