add NA for attempted steal %

This commit is contained in:
eblade 2008-12-21 18:42:21 -05:00
parent d4e16b9b05
commit fc4671fc98

View File

@ -281,13 +281,7 @@ def steal(stat_dict, player):
'% steal attempted' '% steal attempted'
) )
except: except:
return (stat, return (stat, 'NA', 'st=NA', 'steal=NA', '(0/0)', '% steal attempted')
'%3.1f' % (0) + '%',
'st=%3.1f' % (0) + '%',
'steal=%3.1f' % (0) + '%',
'(%d/%d)' % (0, 0),
'% steal attempted'
)
def f_SB_steal(stat_dict, player): def f_SB_steal(stat_dict, player):
""" Folded SB to steal.""" """ Folded SB to steal."""
@ -306,7 +300,7 @@ def f_SB_steal(stat_dict, player):
'NA', 'NA',
'fSB=NA', 'fSB=NA',
'fSB_s=NA', 'fSB_s=NA',
'0/0', '(0/0)',
'% folded SB to steal') '% folded SB to steal')
def f_BB_steal(stat_dict, player): def f_BB_steal(stat_dict, player):
@ -326,7 +320,7 @@ def f_BB_steal(stat_dict, player):
'NA', 'NA',
'fBB=NA', 'fBB=NA',
'fBB_s=NA', 'fBB_s=NA',
'0/0', '(0/0)',
'% folded BB to steal') '% folded BB to steal')
def three_B_0(stat_dict, player): def three_B_0(stat_dict, player):