xivind / velo-supervisor-2000

Program to monitor bicycle service intervals
2 stars 0 forks source link

Change deprecated attribute in method prepare_payload_rides() in Strava class #12

Open xivind opened 3 months ago

xivind commented 3 months ago

From Stravas changelog: https://developers.strava.com/docs/changelog/ "June 15, 2022 Introduction of activity sport_type. This is the preferred field to use moving forward, as opposed to type, which is now considered deprecated. Please note: this change is backward compatible and type will still be supported. The SportType enumeration is distinct from ActivityType in that it includes new types (e.g. MountainBikeRide). In requests where both type and sport_type are present, type will be ignored."