Fixed some wrong stats in Stats.py

This commit is contained in:
DoNoBaN 2011-02-08 07:38:18 +01:00
parent 637257a63d
commit 674c9640ed

View File

@ -442,12 +442,12 @@ def three_B(stat_dict, player):
""" Three bet preflop/3rd."""
stat = 0.0
try:
stat = float(stat_dict[player]['3b_0'])/float(stat_dict[player]['Tb_opp_0'])
stat = float(stat_dict[player]['Tb_0'])/float(stat_dict[player]['Tb_opp_0'])
return (stat,
'%3.1f' % (100.0*stat),
'3B=%3.1f%%' % (100.0*stat),
'3B_pf=%3.1f%%' % (100.0*stat),
'(%d/%d)' % (stat_dict[player]['3b_0'], stat_dict[player]['Tb_opp_0']),
'(%d/%d)' % (stat_dict[player]['Tb_0'], stat_dict[player]['Tb_opp_0']),
_('% 4 Bet preflop/3rd'))
except:
return (stat,
@ -461,7 +461,7 @@ def four_B(stat_dict, player):
""" Four bet preflop/4rd."""
stat = 0.0
try:
stat = float(stat_dict[player]['4b_0'])/float(stat_dict[player]['Fb_opp_0'])
stat = float(stat_dict[player]['Fb_0'])/float(stat_dict[player]['Fb_opp_0'])
return (stat,
'%3.1f' % (100.0*stat),
'4B=%3.1f%%' % (100.0*stat),