From 6b56345e1d5da21b664b88f757433d9cf0a17cf4 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:00:38 -0300 Subject: [PATCH] Fix climb portal badges --- .github/workflows/pyinstaller.yaml | 2 +- zwift_offline.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pyinstaller.yaml b/.github/workflows/pyinstaller.yaml index 08d4afad..2bbfc020 100644 --- a/.github/workflows/pyinstaller.yaml +++ b/.github/workflows/pyinstaller.yaml @@ -3,7 +3,7 @@ name: pyinstaller on: push: branches: - - master + - climb_portal jobs: build: diff --git a/zwift_offline.py b/zwift_offline.py index 84568687..eda439c3 100644 --- a/zwift_offline.py +++ b/zwift_offline.py @@ -3448,7 +3448,7 @@ def achievement_loadPlayerAchievements(): achievements = profile_pb2.Achievements() with open(achievements_file, 'rb') as f: achievements.ParseFromString(f.read()) - climbs = SegmentResult.query.filter(SegmentResult.player_id == current_user.player_id, SegmentResult.segment_id.between(10000, 11000)).count() + climbs = RouteResult.query.filter(RouteResult.player_id == current_user.player_id, RouteResult.route_hash.between(10000, 11000)).count() if climbs: if not any(a.id == 211 for a in achievements.achievements): achievements.achievements.add().id = 211 # Portal Climber