From f2e31c5df5101f256f9ea98b65554469ee5ff56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 8 Jul 2024 02:25:56 +0300 Subject: [PATCH] Add sync_database factory --- plextraktsync/util/Factory.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plextraktsync/util/Factory.py b/plextraktsync/util/Factory.py index 81c05f5f1f5..a290d980e69 100644 --- a/plextraktsync/util/Factory.py +++ b/plextraktsync/util/Factory.py @@ -318,6 +318,12 @@ def sync_config(self): return SyncConfig(self.config, self.server_config) + @cached_property + def sync_database(self): + from plextraktsync.db.SyncDatabase import SyncDatabase + + return SyncDatabase(self.sync_engine) + @cached_property def queue(self): from plextraktsync.queue.BackgroundTask import BackgroundTask