Party: Possible fix for freeroll tourneys

This commit is contained in:
Worros 2011-03-02 10:11:35 +08:00
parent 302af8eae9
commit 90e26bc7c2

View File

@ -330,6 +330,12 @@ class PartyPoker(HandHistoryConverter):
# FIXME: there is no such property in Hand class
self.isSNG = True
if key == 'BUYIN':
if info[key] == None:
# Freeroll tourney
hand.buyin = 0
hand.fee = 0
hand.buyinCurrency = "FREE"
hand.isKO = False
if hand.tourNo != None:
hand.buyin = 0
hand.fee = 0