[~] JMV Arguments validated.

Co-authored-by: Antoninop <antoninopiraino70@gmail.com>
This commit is contained in:
charleslemaux 2024-08-24 16:38:19 +02:00 committed by GitHub
commit 683a72cad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,9 +116,6 @@ def fetch_players_status(user: UserRecord, name: str) -> tuple[HTTPStatus, Union
file_contents[file_name] = file.read() file_contents[file_name] = file.read()
else: else:
return HTTPStatus.NOT_FOUND, "Launch the server at least once." return HTTPStatus.NOT_FOUND, "Launch the server at least once."
file_contents_json = json.dumps(file_contents, indent=4)
return HTTPStatus.OK, file_contents return HTTPStatus.OK, file_contents
except Exception as e: except Exception as e:
file_manager.log_error(type(e).__name__, str(e)) file_manager.log_error(type(e).__name__, str(e))