From 3f86c54b17b30c95d0f7154779037c79de8f15c9 Mon Sep 17 00:00:00 2001 From: eblade Date: Tue, 2 Dec 2008 10:14:38 -0500 Subject: [PATCH] add "NA" to fold to steal stats for 0/0's --- pyfpdb/Stats.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pyfpdb/Stats.py b/pyfpdb/Stats.py index 5ca42fe8..db2ada2e 100644 --- a/pyfpdb/Stats.py +++ b/pyfpdb/Stats.py @@ -261,12 +261,11 @@ def f_SB_steal(stat_dict, player): ) except: return (stat, - '%3.1f' % (0) + '%', - 'fSB=%3.1f' % (0) + '%', - 'fSB_s=%3.1f' % (0) + '%', - '(%d/%d)' % (0, 0), - '% folded SB to steal' - ) + 'NA', + 'fSB=NA', + 'fSB_s=NA', + '0/0', + '% folded SB to steal') def f_BB_steal(stat_dict, player): """ Folded BB to steal.""" @@ -282,12 +281,11 @@ def f_BB_steal(stat_dict, player): ) except: return (stat, - '%3.1f' % (0) + '%', - 'fBB=%3.1f' % (0) + '%', - 'fBB_s=%3.1f' % (0) + '%', - '(%d/%d)' % (0, 0), - '% folded BB to steal' - ) + 'NA', + 'fBB=NA', + 'fBB_s=NA', + '0/0', + '% folded BB to steal') def three_B_0(stat_dict, player): """ Three bet preflop/3rd."""