jonatanklosko / wca_statistics

Build kit for generating cubing-related rankings
https://jonatanklosko.github.io/wca_statistics
MIT License
18 stars 29 forks source link

Added percentage complete per month #21

Closed OldManLink closed 1 year ago

OldManLink commented 1 year ago

Another obvious improvement to the distinct dates stat: what percentage of each month has each person completed?

I looked for a ruby "max number of days in a month" but couldn't find one, so I hope this solution isn't too ugly. Once again, any improvements you can suggest would be most welcome!

OldManLink commented 1 year ago

Loved this:

 month_days = Date.new(2000, month, -1).day