diff --git a/api_sender.html b/api_sender.html index 85a46ea..a4cd19a 100644 --- a/api_sender.html +++ b/api_sender.html @@ -100,7 +100,7 @@ document.addEventListener('DOMContentLoaded', () => { }); function sendRequest(endpoint, payload) { - return fetch(`http://localhost:3000/${endpoint}`, { + return fetch(`https://176.165.62.226:3000/${endpoint}`, { method: 'POST', headers: { 'Content-Type': 'application/json' diff --git a/generic_executor.py b/generic_executor.py index 10ccd85..c6b9f47 100644 --- a/generic_executor.py +++ b/generic_executor.py @@ -149,13 +149,8 @@ def server_run(user: UserRecord, name: str) -> tuple[HTTPStatus, str or None]: def server_stop(user: UserRecord, name: str) -> tuple[HTTPStatus, str or None]: port = None - user_id = user.uid try: port = firebase_manager.get_server_port(user.uid) - try: - firebase_manager.update_server_running_state(user_id, name, False) - except Exception: - pass if port is None: return HTTPStatus.NOT_FOUND, f"Server {name} not found in firestore." exists: bool = mc_manager.stop_server(port)