From 4c0b709c22c7f5e681032626c2afc4df1a1b4742 Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 26 Feb 2009 22:01:35 -0500 Subject: [PATCH] fix for error if totalprofit = 0 (new player) --- pyfpdb/Stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Stats.py b/pyfpdb/Stats.py index cad3af88..8c33f3a1 100644 --- a/pyfpdb/Stats.py +++ b/pyfpdb/Stats.py @@ -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."""