UEWBot / dipvis

Django-based visualiser for tournaments for the boardgame Diplomacy
GNU General Public License v3.0
7 stars 5 forks source link

Consider storing rank in the database #288

Open UEWBot opened 7 months ago

UEWBot commented 7 months ago

It's currently calculated when needed, but doesn't actually change very often (more frequently than score, because it can change due to other players' scores changing). Would be directly accessible to templates. May be useful to add a rank_tied attribute, too, because that can be tricky to determine.

Would affect TournamentPlayer and maybe also RoundPlayer. Could also do GamePlayer, but there's no clear need. It may also make sense to add GamePlayer.best_country_rank (and GamePlayer.best_country_tied?) or similar.