summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-29 19:06:19 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-29 19:06:19 +0200
commit3d48840bc034c5a57527e89372ed13bc988b788c (patch)
treeddc20621b14601a4b359b28370d86048b5d5d3c1
parentd4b42a5801dee188def140953e7ac6d9bc0a8c94 (diff)
downloadanalyzer-3d48840bc034c5a57527e89372ed13bc988b788c.tar.gz
analyzer-3d48840bc034c5a57527e89372ed13bc988b788c.zip
store TS delta in participant
-rw-r--r--worker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/worker.py b/worker.py
index 7ded73f..7afaa83 100644
--- a/worker.py
+++ b/worker.py
@@ -159,6 +159,7 @@ def process():
# lower rank is better = winner!
for rating, participant in zip(team, roster.participants):
player = participant.player[0]
+ participant.trueskill_delta = (rating.mu + rating.sigma) - (float(player.trueskill_mu) + float(player.trueskill_sigma))
if player.trueskill_mu == participant.trueskill_mu \
and player.trueskill_sigma == participant.trueskill_sigma:
# match hasn't been rated before