From 835ecb837a92db87db5e230c8e1a2b8d63b401ae Mon Sep 17 00:00:00 2001 From: ZKWolf Date: Sun, 18 Feb 2024 21:54:27 +0100 Subject: [PATCH] Changed DEV Gamenews --- src/endpoints/general.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/endpoints/general.py b/src/endpoints/general.py index 3322471..cee1c22 100644 --- a/src/endpoints/general.py +++ b/src/endpoints/general.py @@ -23,6 +23,9 @@ def gamenews(): messageType = sanitize_input(request.args.get('messageType')) faction = sanitize_input(request.args.get('faction')) playerLevel = sanitize_input(request.args.get('playerLevel')) + if dev_env == "true": + output = json.load(open(os.path.join(app.root_path, "json", "placeholders", "dev_gamenews.json"), "r")) + return jsonify(output) output = json.load(open(os.path.join(app.root_path, "json", "placeholders", "gamenews.json"), "r")) return jsonify(output) except TimeoutError: