diff --git a/zwift_offline.py b/zwift_offline.py index bad9dedd..53a86deb 100644 --- a/zwift_offline.py +++ b/zwift_offline.py @@ -1271,28 +1271,6 @@ def api_users_login(): response.expiration = 70 with open(os.path.join(SCRIPT_DIR, "economy_config.txt")) as f: Parse(f.read(), response.economy_config) - try: - profile = profile_pb2.PlayerProfile() - profile_file = '%s/%s/profile.bin' % (STORAGE_DIR, current_user.player_id) - with open(profile_file, 'rb') as f: - profile.ParseFromString(f.read()) - current_level = profile.achievement_level // 100 - new_leveling = True - for level in response.economy_config.cycling_levels: - if level.xp > profile.total_xp: - if level.level > current_level + 1: - new_leveling = False - break - if not new_leveling: - for level in response.economy_config.cycling_levels: - if level.level == current_level: - profile.total_xp = level.xp - profile.f128 = level.xp - with open(profile_file, 'wb') as f: - f.write(profile.SerializeToString()) - break - except: - pass return response.SerializeToString(), 200