This updates the leaderboard request to go through the Stravalib library. It's a little bit hokey because the model objects in that library don't support dict conversion well... the builtin vars() method doesn't work on the model attributes, it only returns the attributes of the base class.
We might not want to merge this yet. I'm going to see if another library comes out cleaner. There's a different library that's generated using Swagger codegen that might work better.
This updates the leaderboard request to go through the Stravalib library. It's a little bit hokey because the model objects in that library don't support dict conversion well... the builtin
vars()
method doesn't work on the model attributes, it only returns the attributes of the base class.We might not want to merge this yet. I'm going to see if another library comes out cleaner. There's a different library that's generated using Swagger codegen that might work better.