summaryrefslogtreecommitdiff
path: root/ausbutler
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-05-04 15:40:25 +0200
committeremkael <emkael@tlen.pl>2017-05-09 02:51:04 +0200
commitbe579d2034f168e332bd203ffeb45b3eea42a3ea (patch)
tree6fbf658854e5ee52983afb6cb7d45f0ade4259c2 /ausbutler
parent023723a3f1fd6e0962f47e488b234ef9d0ca25b3 (diff)
Bugfix for indexing segments
Diffstat (limited to 'ausbutler')
-rw-r--r--ausbutler/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ausbutler/interface.py b/ausbutler/interface.py
index 4f55850..d793bc9 100644
--- a/ausbutler/interface.py
+++ b/ausbutler/interface.py
@@ -239,7 +239,7 @@ class Interface(object):
players[butler.id]['count'] += butler.board_count
players[butler.id]['results'][
((butler.match - 1) * Constants.segmentsperround +
- butler.segment) if butler.match > 0 else 0
+ (butler.segment - 1)) if butler.match > 0 else 0
] = butler.corrected_score
for player in players.values():
if player['count'] > 0: