DerivedStats: Fix position calculation for holdem.
THP: Noted 65 additional issues with the position stat Really need to merge the position calculation
This commit is contained in:
parent
dbbccc4ac6
commit
9d712ba812
|
@ -262,8 +262,8 @@ class DerivedStats():
|
||||||
else:
|
else:
|
||||||
# set blinds first, then others from pfbao list, avoids problem if bb
|
# set blinds first, then others from pfbao list, avoids problem if bb
|
||||||
# is missing from pfbao list or if there is no small blind
|
# 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']
|
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[2] == 'small 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 there are > 1 sb or bb only the first is used!
|
||||||
if bb:
|
if bb:
|
||||||
self.handsplayers[bb[0]]['position'] = 'B'
|
self.handsplayers[bb[0]]['position'] = 'B'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user