Make sure HUD_main gets community cards for AWs to use.

This commit is contained in:
Ray
2009-03-19 13:18:50 -04:00
parent 530462cc72
commit 75a94299f9
2 changed files with 3 additions and 5 deletions
+3 -1
View File
@@ -151,7 +151,9 @@ class HUD_main(object):
try:
(table_name, max, poker_game) = self.db_connection.get_table_name(new_hand_id)
stat_dict = self.db_connection.get_stats_from_hand(new_hand_id)
cards = self.db_connection.get_cards(new_hand_id)
cards = self.db_connection.get_cards(new_hand_id)
comm_cards = self.db_connection.get_common_cards(new_hand_id)
cards['common'] = comm_cards['common']
except Exception, err:
print "db error: skipping ", new_hand_id, err
sys.stderr.write("Database error %s in hand %d. Skipping.\n" % (err, int(new_hand_id)))