very dirty hack to work around bug in gameinfo regex missing last digit of second number

This commit is contained in:
steffen123 2010-08-02 14:56:20 +02:00
parent 1054bf028d
commit 57d9cc5665

View File

@ -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:]))