From 9d712ba812383023388deea58212887834c9042f Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 29 Sep 2010 15:55:25 +0800 Subject: [PATCH] DerivedStats: Fix position calculation for holdem. THP: Noted 65 additional issues with the position stat Really need to merge the position calculation --- pyfpdb/DerivedStats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/DerivedStats.py b/pyfpdb/DerivedStats.py index 131ee3a3..cb289b7a 100644 --- a/pyfpdb/DerivedStats.py +++ b/pyfpdb/DerivedStats.py @@ -262,8 +262,8 @@ class DerivedStats(): else: # set blinds first, then others from pfbao list, avoids problem if bb # is missing from pfbao list or if there is no small blind - bb = [x[0] for x in hand.actions[hand.actionStreets[0]] if x[2] == 'big blind'] - sb = [x[0] for x in hand.actions[hand.actionStreets[0]] if x[2] == 'small blind'] + bb = [x[0] for x in hand.actions[hand.actionStreets[0]] if x[1] == 'big blind'] + sb = [x[0] for x in hand.actions[hand.actionStreets[0]] if x[1] == 'small blind'] # if there are > 1 sb or bb only the first is used! if bb: self.handsplayers[bb[0]]['position'] = 'B'