alexames/DeltaBot — pull request #56 by amorde (2014-04-14 09:59:18+00:00)
Title: Initial implementation of special flair for monthly top 10 users #18

This is an initial implementation of the feature requested in #18

This uses the flair['top1'] and flair['top10'] values set in the config.json to add a special CSS class to the month's top earner and a different, special CSS class for the month's top 2-10 earners.

Last month's special flairs need to be removed, so I've changed the way that scoreboards are accessed to make it easy to get the scoreboard for any given date.

The update_top_ten_css method only modifies the CSS class of the flair, not the actual value.

This HAS NOT BEEN TESTED. Although the tests pass, I have no real way of testing this without access to DeltaBot.