Skip to content

Commit

Permalink
Fix climb portal badges
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnapalm committed Jan 15, 2024
1 parent f0368cc commit 6b56345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pyinstaller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: pyinstaller
on:
push:
branches:
- master
- climb_portal

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion zwift_offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b56345

Please sign in to comment.