Ensure table.key is always temp_key calculated in HUD_main.
This commit is contained in:
parent
3fbaa0b0fb
commit
a4dff38c9f
|
@ -270,6 +270,7 @@ class HUD_main(object):
|
|||
table_name = "%s %s" % (tour_number, tab_number)
|
||||
log.error("HUD create: table name %s not found, skipping." % table_name)
|
||||
else:
|
||||
tablewindow.key = temp_key
|
||||
tablewindow.max = max
|
||||
tablewindow.site = site_name
|
||||
# Test that the table window still exists
|
||||
|
|
|
@ -126,13 +126,11 @@ class Table_Window(object):
|
|||
self.type = "tour"
|
||||
table_kwargs = dict(tournament = self.tournament, table_number = self.table)
|
||||
self.tableno_re = getTableNoRe(self.config, self.site, tournament = self.tournament)
|
||||
self.key = "%s Table %s" % (tournament, str(self.table))
|
||||
elif table_name is not None:
|
||||
self.name = table_name
|
||||
self.type = "cash"
|
||||
self.tournament = None
|
||||
table_kwargs = dict(table_name = table_name)
|
||||
self.key = table_name # used as key for the hud_dict in HUD_main
|
||||
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user