From 3d48840bc034c5a57527e89372ed13bc988b788c Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 29 May 2017 19:06:19 +0200 Subject: store TS delta in participant --- worker.py | 1 + 1 file changed, 1 insertion(+) (limited to 'worker.py') 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 -- cgit v1.3.1