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 16, 2024
1 parent f0368cc commit 08c0ad3
Showing 1 changed file with 1 addition and 1 deletion.
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 08c0ad3

Please sign in to comment.