From 50bfa24d9956b3d26996b4de409f5654021dafff Mon Sep 17 00:00:00 2001 From: fatsbrown <123950591+fatsbrown@users.noreply.github.com> Date: Sun, 31 May 2026 13:49:15 -0300 Subject: [PATCH] Maintain server side workouts manifest Fix user home sync status in single player mode. Sync workouts before rendering user home. Changes in launcher pages. Revert unnecessary changes. --- .gitignore | 2 - README.md | 3 +- cdn/static/web/launcher/intervals.html | 44 ++---- cdn/static/web/launcher/trainingpeaks.html | 20 +-- cdn/static/web/launcher/user_home.html | 35 ++--- docker-compose.yml | 1 - docs/local-usage.md | 110 -------------- local_zwift_workouts.py | 168 --------------------- tests/__init__.py | 0 tests/test_intervals_workouts.py | 152 ------------------- tests/test_local_zwift_workouts.py | 113 -------------- tests/test_trainingpeaks_workouts.py | 55 ------- tests/test_workout_state.py | 73 --------- workouts_manifest.py | 95 ++++++++++++ zwift_offline.py | 106 +++++-------- 15 files changed, 171 insertions(+), 806 deletions(-) delete mode 100644 docs/local-usage.md delete mode 100644 local_zwift_workouts.py delete mode 100644 tests/__init__.py delete mode 100644 tests/test_intervals_workouts.py delete mode 100644 tests/test_local_zwift_workouts.py delete mode 100644 tests/test_trainingpeaks_workouts.py delete mode 100644 tests/test_workout_state.py create mode 100644 workouts_manifest.py diff --git a/.gitignore b/.gitignore index 83e6fff..0b33d80 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,3 @@ __pycache__/ build/ dist/ logs/ -.venv/ -scripts/strava_token.txt diff --git a/README.md b/README.md index 2c5897d..2eb62d9 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ zoffline can be installed on the same machine as Zwift or another local machine. - TZ=Europe/London volumes: - ./storage/:/usr/src/app/zwift-offline/storage - - ${ZWIFT_WORKOUTS_DIR:-~/Documents/Zwift/Workouts}:/root/Documents/Zwift/Workouts ports: - 80:80 - 443:443 @@ -86,7 +85,6 @@ zoffline can be installed on the same machine as Zwift or another local machine. restart: unless-stopped ``` * In the ``volumes`` tag replace ``./storage/`` before the ``:`` with the directory path you want to use as your local zoffline data store. - * Set ``ZWIFT_WORKOUTS_DIR`` if your local Zwift workouts folder is not ``~/Documents/Zwift/Workouts``. * If you are not running zoffline on the same PC that Zwift is running: create a ``server-ip.txt`` file in the ``storage`` directory containing the IP address of the PC running zoffline. * Start zoffline with: ``docker-compose up -d`` @@ -439,3 +437,4 @@ this project and does not endorse this project. All product and company names are trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. + diff --git a/cdn/static/web/launcher/intervals.html b/cdn/static/web/launcher/intervals.html index 14414b1..9f1ee13 100644 --- a/cdn/static/web/launcher/intervals.html +++ b/cdn/static/web/launcher/intervals.html @@ -32,36 +32,6 @@ - {% if sync_status %} -