From 001e3aaa45db42a19ca4bd567feaa94ad25e9986 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:54:32 -0300 Subject: [PATCH] Disable route --- zwift_offline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zwift_offline.py b/zwift_offline.py index fc0a92e..17195af 100644 --- a/zwift_offline.py +++ b/zwift_offline.py @@ -3135,9 +3135,11 @@ def achievement_unlock(): f.write(request.stream.read()) return '', 202 +# if we respond to this request with an empty json a "tutorial" will be presented in ZCA +# and for each completed step it will POST /api/achievement/unlock/ @app.route('/api/achievement/category/', methods=['GET']) def api_achievement_category(category_id): - return jsonify([]) + return '', 404 # returning error for now, since some steps can't be completed def run_standalone(passed_online, passed_global_relay, passed_global_pace_partners, passed_global_bots, passed_global_ghosts, passed_ghosts_enabled, passed_save_ghost, passed_player_update_queue, passed_discord):