From 021567f9c019ab2973cf4b6e96a8c0cf2ef1c9ac Mon Sep 17 00:00:00 2001 From: ZKWolf Date: Sun, 31 Dec 2023 00:10:57 +0100 Subject: [PATCH] Fixed Stashboard and crash reporter ping --- src/endpoints/general.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/endpoints/general.py b/src/endpoints/general.py index 121e8ce..8e84f19 100644 --- a/src/endpoints/general.py +++ b/src/endpoints/general.py @@ -123,7 +123,8 @@ def config_use_mirrors_mm_steam(): def crashreporter_ping(): check_for_game_client("soft") try: - return jsonify({"status": "success"}) + # potentialy {"status":"success","stackKeyId":-1,"crashId":1525,"messageId":-1} + return "healthy" except TimeoutError: return jsonify({"status": "error"}) except Exception as e: @@ -157,7 +158,8 @@ def healthcheck(): @app.route("/api/v1/services/tex/") def services_tex(): try: - if request.headers.get('User-Agent') == "TheExit/++UE4+Release-4.21-CL-0 Windows/6.2.9200.1.256.64bit": + user_agent = request.headers.get('User-Agent') + if "TheExit/++UE4+Release-4.21-CL-0 Windows/" in user_agent: # EStashboard [0 Up, 1 Down, 2 Warning, 3 Failed] #todo Set Timestamp to current time return jsonify({