BugFix - Medals should be assigned based on Rank & Activity Type
Second attempt at fixing this, this time leaving the aggregation alone, so the existing leaderboard logic remains as-is.
In this case, I'm introducing application level filtering to ensure only activities of the same type are considered when picking the medal emoji.
Apologies, I don't have a ruby env setup on this laptop and vibe coded this with cursor.
Apologies, I don't have a ruby env setup on this laptop and vibe coded this with cursor.
I mean that's pretty awesome, but maybe you should get yourself setup on Ruby (easy) because you love contributing to this project? ;)
Got some time for this today and sunk the aggregation into aggregate!. Thanks for your help @JonEHolland!
Ported to https://github.com/dblock/discord-strava/commit/0960bfe6f054c400cae136e754bb4837eae99363 as well.