Merge branch 'master' of git://repo.or.cz/fpbd-bostik

Conflicts:
	pyfpdb/HUD_main.py
This commit is contained in:
Worros 2009-11-29 18:08:47 +08:00
commit a667fe37be
2 changed files with 10 additions and 9 deletions

View File

@ -312,8 +312,8 @@ class Filters(threading.Thread):
self.cbAllLimits.set_active(False)
if not self.limits[limit]:
if limit.isdigit():
if self.cbFl is not None:
self.cbFl.set_active(False)
if self.cbFL is not None:
self.cbFL.set_active(False)
else:
if self.cbNL is not None:
self.cbNL.set_active(False)
@ -329,7 +329,9 @@ class Filters(threading.Thread):
if self.limits[limit]:
for cb in self.cbLimits.values():
cb.set_active(False)
if self.cbNL is not None:
self.cbNL.set_active(False)
if self.cbFL is not None:
self.cbFL.set_active(False)
elif limit == "fl":
if not self.limits[limit]:

View File

@ -215,11 +215,10 @@ class HUD_main(object):
# Update an existing HUD
if temp_key in self.hud_dict:
# get stats using hud's specific params and get cards
try:
self.db_connection.init_hud_stat_vars( self.hud_dict[temp_key].hud_params['hud_days']
, self.hud_dict[temp_key].hud_params['h_hud_days'])
stat_dict = self.db_connection.get_stats_from_hand(new_hand_id, type, self.hud_dict[temp_key].hud_params
,self.hero_ids[site_id], num_seats)
try:
stat_dict = self.db_connection.get_stats_from_hand(new_hand_id, type, self.hud_dict[temp_key].hud_params, self.hero_ids[site_id])
self.hud_dict[temp_key].stat_dict = stat_dict
except KeyError: # HUD instance has been killed off, key is stale
sys.stderr.write('hud_dict[%s] was not found\n' % temp_key)
@ -262,7 +261,7 @@ class HUD_main(object):
if hasattr(tablewindow, 'number'):
self.create_HUD(new_hand_id, tablewindow, temp_key, max, poker_game, type, stat_dict, cards)
else:
sys.stderr.write('Table "%s" no longer exists\n', table_name)
sys.stderr.write('Table "%s" no longer exists\n' % table_name)
self.db_connection.connection.rollback()