fix for error if totalprofit = 0 (new player)

This commit is contained in:
eblade 2009-02-26 22:01:35 -05:00
parent 9557117a16
commit 4c0b709c22

View File

@ -75,7 +75,7 @@ def totalprofit(stat_dict, player):
if stat_dict[player]['net'] != 0:
stat = float(stat_dict[player]['net']) / 100
return (stat, '$%.2f' % stat, 'tp=$%.2f' % stat, 'totalprofit=$%.2f' % stat, str(stat), 'Total Profit')
return ('0', '0', '0', '0', 'Total Profit')
return ('0', '$0.00', 'tp=0', 'totalprofit=0', '0', 'Total Profit')
def playername(stat_dict, player):
""" Player Name."""