Skip to content

Commit

Permalink
Update zwift_offline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnapalm committed Jan 7, 2024
1 parent 6324bde commit 9b79369
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zwift_offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,9 @@ def api_users_login():
for level in economy_config['cyclingLevels']:
if level['level'] >= current_level:
level['xp'] += offset
economy_config['transition_start'] = current_level
economy_config['transition_end'] = transition_end
if transition_end > current_level:
economy_config['transition_start'] = current_level
economy_config['transition_end'] = transition_end
with open(config_file, 'w') as f:
json.dump(economy_config, f, indent=2)
with open(config_file) as f:
Expand Down

0 comments on commit 9b79369

Please sign in to comment.