TOURNEY: store HandsPlayers.tourneysPlayersId

This commit is contained in:
steffen123
2010-07-15 00:27:57 +02:00
parent 6a8f3ff68b
commit ebf16c6aa9
3 changed files with 10 additions and 5 deletions
+4
View File
@@ -140,6 +140,10 @@ class DerivedStats():
self.handsplayers[player[1]]['seatNo'] = player[0]
self.handsplayers[player[1]]['startCash'] = int(100 * Decimal(player[2]))
self.handsplayers[player[1]]['sitout'] = False #TODO: implement actual sitout detection
if hand.gametype["type"]=="tour":
self.handsplayers[player[1]]['tourneysPlayersIds'] = hand.tourneysPlayersIds[player[1]]
else:
self.handsplayers[player[1]]['tourneysPlayersIds'] = None
# XXX: enumerate(list, start=x) is python 2.6 syntax; 'start'
#for i, street in enumerate(hand.actionStreets[2:], start=1):