From 90e26bc7c24ec048129621cedea3bbadf9049b8d Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 2 Mar 2011 10:11:35 +0800 Subject: [PATCH] Party: Possible fix for freeroll tourneys --- pyfpdb/PartyPokerToFpdb.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyfpdb/PartyPokerToFpdb.py b/pyfpdb/PartyPokerToFpdb.py index 65b6f0aa..2abd744c 100755 --- a/pyfpdb/PartyPokerToFpdb.py +++ b/pyfpdb/PartyPokerToFpdb.py @@ -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