Skip to content

Commit

Permalink
Use ServerConfigFactory singleton
Browse files Browse the repository at this point in the history
This ensures same instance is used across application
  • Loading branch information
glensc committed Sep 9, 2024
1 parent d8f34fd commit e745478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plextraktsync/commands/plex_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from rich.panel import Panel
from rich.prompt import Confirm, Prompt

from plextraktsync.config.ServerConfigFactory import ServerConfigFactory
from plextraktsync.decorators.flatten import flatten_list
from plextraktsync.factory import factory
from plextraktsync.style import error, prompt, success, title
Expand Down Expand Up @@ -221,7 +220,7 @@ def login(username: str, password: str):
else:
plex_account_token = account._token

sc = ServerConfigFactory()
sc = factory.server_config_factory
sc.add_server(
id=plex.machineIdentifier,
name=server.name,
Expand Down

0 comments on commit e745478

Please sign in to comment.