Fix what looks like a thinko

The stat 'fold_f' probably should do a "float(foo)/float(bar)" division
because there is no function called "fold"
This commit is contained in:
Mika Bostrom 2010-05-13 06:57:59 +03:00
parent ed1b24a38f
commit 2503cd1b6c

View File

@ -277,7 +277,7 @@ def fold_f(stat_dict, player):
""" Folded flop/4th."""
stat = 0.0
try:
stat = float(stat_dict[player]['fold_2'])/fold(stat_dict[player]['saw_f'])
stat = float(stat_dict[player]['fold_2'])/float(stat_dict[player]['saw_f'])
return (stat,
'%3.1f' % (100*stat) + '%',
'ff=%3.1f' % (100*stat) + '%',