From be579d2034f168e332bd203ffeb45b3eea42a3ea Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 4 May 2017 15:40:25 +0200 Subject: Bugfix for indexing segments --- ausbutler/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ausbutler') 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: -- cgit v1.2.3