From 57d9cc5665d9cff939e71736539cf628008dcf32 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 2 Aug 2010 14:56:20 +0200 Subject: [PATCH] very dirty hack to work around bug in gameinfo regex missing last digit of second number --- pyfpdb/PokerStarsToFpdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 28dbd219..573b8dfb 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -253,7 +253,8 @@ class PokerStars(HandHistoryConverter): if hand.buyinCurrency!="PSFP": hand.buyin = int(100*Decimal(info['BIAMT'][1:])) - if info['BIRAKE']=="0": #we have a non-bounty game + if info['BIRAKE'][0]!="$": #we have a non-bounty game + info['BOUNTY']=info['BOUNTY']+info['BIRAKE'] #TODO remove this dirty dirty hack by fixing regex hand.fee = int(100*Decimal(info['BOUNTY'][1:])) else: hand.fee = int(100*Decimal(info['BIRAKE'][1:]))