Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Use ServerConfigFactory singleton #2052

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading