From 2503cd1b6c461f4ad6bbbe8e86175ce41403e0d3 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Thu, 13 May 2010 06:57:59 +0300 Subject: [PATCH] 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" --- pyfpdb/Stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Stats.py b/pyfpdb/Stats.py index 47d8b9f1..264ebd18 100755 --- a/pyfpdb/Stats.py +++ b/pyfpdb/Stats.py @@ -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) + '%',