From b1d65dbadd5ce5a93ca98669773c0d076bb58838 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sat, 24 Oct 2009 20:01:24 +0100 Subject: [PATCH] default all values in hud_params when not passed into get_stats_from_hand --- pyfpdb/Database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index bb9739ec..1533c05c 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -427,7 +427,8 @@ class Database: print "***Error: "+err[2]+"("+str(err[1])+"): "+str(sys.exc_info()[1]) def get_stats_from_hand( self, hand, type # type is "ring" or "tour" - , hud_params = {'aggregate_tour':False, 'aggregate_ring':False, 'hud_style':'A', 'agg_bb_mult':100} + , hud_params = {'aggregate_tour':False, 'aggregate_ring':False, 'hud_style':'A', 'hud_days':30, 'agg_bb_mult':100 + ,'h_aggregate_tour':False, 'h_aggregate_ring':False, 'h_hud_style':'S', 'h_hud_days':30, 'h_agg_bb_mult':100} , hero_id = -1 ): aggregate = hud_params['aggregate_tour'] if type == "tour" else hud_params['aggregate_ring']