Change factory.sync to property
MODIFY
plextraktsync/commands/sync.py
plextraktsync/commands/sync.py
@@ -53,7 +53,7 @@ def sync(
return
with measure_time("Completed full sync"):
- runner = factory.sync()
+ runner = factory.sync
if runner.config.need_library_walk:
w.print_plan(print=logger.info)
if dry_run:

MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -67,7 +67,7 @@ def session(self):
return session
- @memoize
+ @cached_property
def sync(self):
from plextraktsync.sync import Sync

Change factory.sync to property