Skip to content

Commit

Permalink
Add sync_database factory
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jul 7, 2024
1 parent 6cb27c2 commit f2e31c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plextraktsync/util/Factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2e31c5

Please sign in to comment.