From f3323a97ea30b237cf2fcd1a6de506fbd924b048 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Sat, 19 Mar 2022 13:05:54 -0300 Subject: [PATCH] Allow achievements upload --- cdn/static/web/launcher/upload.html | 2 +- zwift_offline.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cdn/static/web/launcher/upload.html b/cdn/static/web/launcher/upload.html index 0fb5bb2..c9b6605 100644 --- a/cdn/static/web/launcher/upload.html +++ b/cdn/static/web/launcher/upload.html @@ -55,7 +55,7 @@
- +
diff --git a/zwift_offline.py b/zwift_offline.py index 8dd5017..16b3c16 100644 --- a/zwift_offline.py +++ b/zwift_offline.py @@ -695,7 +695,7 @@ def upload(username): if request.method == 'POST': uploaded_file = request.files['file'] - if uploaded_file.filename in ['profile.bin', 'strava_token.txt', 'garmin_credentials.txt', 'zwift_credentials.txt']: + if uploaded_file.filename in ['profile.bin', 'achievements.bin', 'strava_token.txt', 'garmin_credentials.txt', 'zwift_credentials.txt']: file_path = os.path.join(profile_dir, uploaded_file.filename) uploaded_file.save(file_path) if uploaded_file.filename == 'garmin_credentials.txt' and credentials_key is not None: