summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-08-21 19:37:21 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-08-21 19:37:21 +0200
commit5514eadff7afbca1c575c4a2b979387a31751fe4 (patch)
tree355cffa9662b1e1f32690962b6d6ccad9541d028
parent36aac364aa7438066769c685c3792a0b317e0b23 (diff)
downloadanalyzer-5514eadff7afbca1c575c4a2b979387a31751fe4.tar.gz
analyzer-5514eadff7afbca1c575c4a2b979387a31751fe4.zip
swap delta
-rw-r--r--worker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.py b/worker.py
index b383a1c..58f78fc 100644
--- a/worker.py
+++ b/worker.py
@@ -234,8 +234,8 @@ def process():
player = participant.player[0]
player.trueskill_mu = rating.mu
player.trueskill_sigma = rating.sigma
- # delta = pre - current
- participant.trueskill_delta = (float(participant.trueskill_mu) - float(participant.trueskill_sigma)) - (float(player.trueskill_mu) - float(player.trueskill_sigma))
+ # delta = current - pre
+ participant.trueskill_delta = (float(player.trueskill_mu) - float(player.trueskill_sigma)) - (float(participant.trueskill_mu) - float(participant.trueskill_sigma))
db.commit()
# notify web