]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Refactor the Elo processing code into EloProcessor.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 14 Nov 2015 21:20:33 +0000 (16:20 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 14 Nov 2015 21:20:33 +0000 (16:20 -0500)
commita1653d3aad61f3cbbe5f67af7ca5e3163d9b8c6f
tree7a9dce848dcbb126752fab99173aa9b942f8f3f9
parent3c5ecef2ec6f94f57162d8c4a999df58a4fed548
Refactor the Elo processing code into EloProcessor.

Before, Elo processing was simply a couple of extra methods that mutated
PlayerGameStat and PlayerElo rows, adding them to a session for updating or
inserting later. In order to support an end-of-match game report, we now need
to hold onto to those intermediate values so they can be passed into a
template. To do this I created an EloProcessor class to perform all of the
computation and an EloWIP class to hold onto all of the intermediate values.
EloProcessor can be used to find out what changed during Elo calculations.
xonstat/elo.py
xonstat/views/submission.py