diff --git a/core/Constants.py b/core/Constants.py index 105d539..bf98b56 100644 --- a/core/Constants.py +++ b/core/Constants.py @@ -18,14 +18,14 @@ class Constants: # ticketing group: TICKET_API_BASE_URL: Final[str] = os.environ.get( - # "TICKET_API_BASE_URL", "https://api.hydraveil.net" - "TICKET_API_BASE_URL", "http://localhost:8000" + "TICKET_API_BASE_URL", "https://api.hydraveil.net" + # "TICKET_API_BASE_URL", "http://localhost:8000" ) - SP_API_BASE_URL: Final[str] = os.environ.get('SP_API_BASE_URL', 'http://localhost:8000/api/v1') - SP_BASE_URL: Final[str] = os.environ.get('SP_BASE_URL', 'http://localhost:8000/api') - # SP_API_BASE_URL: Final[str] = os.environ.get('SP_API_BASE_URL', 'https://api.hydraveil.net/api/v1') - # SP_BASE_URL: Final[str] = os.environ.get('SP_BASE_URL', 'https://api.hydraveil.net/api') + # SP_API_BASE_URL: Final[str] = os.environ.get('SP_API_BASE_URL', 'http://localhost:8000/api/v1') + # SP_BASE_URL: Final[str] = os.environ.get('SP_BASE_URL', 'http://localhost:8000/api') + SP_API_BASE_URL: Final[str] = os.environ.get('SP_API_BASE_URL', 'https://api.hydraveil.net/api/v1') + SP_BASE_URL: Final[str] = os.environ.get('SP_BASE_URL', 'https://api.hydraveil.net/api') PING_URL: Final[str] = os.environ.get('PING_URL', 'https://api.hydraveil.net/api/v1/health') diff --git a/core/infrastructure/global_state_coordinator.py b/core/infrastructure/global_state_coordinator.py index 1c2060a..58e8f7e 100644 --- a/core/infrastructure/global_state_coordinator.py +++ b/core/infrastructure/global_state_coordinator.py @@ -58,7 +58,9 @@ def is_connected(profile_id: int) -> bool: # session: state_repo = ProfileStateRepository() - return state_repo.is_profile_active(profile_id) + is_session_connected = state_repo.is_profile_active(profile_id) + print(f"Is this session profile connected? {profile_id}") + return is_session_connected def coordinate_evaluation(connection_observer: ConnectionObserver) -> Result: