Winamax: Minor fix to Pierres patch.

This commit is contained in:
Worros 2011-03-14 14:12:32 +08:00
parent c66ec208c2
commit 7e5573f1f5

View File

@ -247,7 +247,7 @@ class Winamax(HandHistoryConverter):
if k in info.keys() and info[k]: if k in info.keys() and info[k]:
info[k] = info[k].replace(',','.') info[k] = info[k].replace(',','.')
if info[key] == 'Gratuit': if info[key] == 'Gratuit' or info[key] == 'Freeroll':
hand.buyin = 0 hand.buyin = 0
hand.fee = 0 hand.fee = 0
hand.buyinCurrency = "FREE" hand.buyinCurrency = "FREE"
@ -259,7 +259,7 @@ class Winamax(HandHistoryConverter):
elif info[key].find("FPP")!=-1: elif info[key].find("FPP")!=-1:
hand.buyinCurrency="PSFP" hand.buyinCurrency="PSFP"
else: else:
#FIXME: handle other currencies, FPP, play money #FIXME: handle other currencies (are there other currencies?)
raise FpdbParseError(_("failed to detect currency")) raise FpdbParseError(_("failed to detect currency"))
info['BIAMT'] = info['BIAMT'].strip(u'$€FPP') info['BIAMT'] = info['BIAMT'].strip(u'$€FPP')