From 6866f409ce4f6afa331730bb223e0a28eaf5f191 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 9 Apr 2009 09:21:52 -0400 Subject: [PATCH] Fix regression importing some Stars tournaments. --- pyfpdb/fpdb_simple.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pyfpdb/fpdb_simple.py b/pyfpdb/fpdb_simple.py index 609e3b4c..b2ef9d59 100644 --- a/pyfpdb/fpdb_simple.py +++ b/pyfpdb/fpdb_simple.py @@ -869,11 +869,19 @@ def goesAllInOnThisLine(line): #end def goesAllInOnThisLine #returns the action type code (see table design) of the given action line -ActionTypes = { 'calls':"call", 'brings in for':"blind", 'completes it to':"bet", ' posts $':"blind", - ' posts a dead ' : "blind", ' posts the small blind of $':"blind", ': posts big blind ':"blind", - ' posts the big blind of $':"blind", ': posts small & big blinds $':"blind", - ': posts small blind $':"blind", - ' bets' : "bet", ' raises' : "bet" +ActionTypes = { 'brings in for' :"blind", + ' posts $' :"blind", + ' posts a dead ' :"blind", + ' posts the small blind of $' :"blind", + ': posts big blind ' :"blind", + ': posts small blind ' :"blind", + ' posts the big blind of $' :"blind", + ': posts small & big blinds $' :"blind", + ': posts small blind $' :"blind", + 'calls' :"call", + 'completes it to' :"bet", + ' bets' :"bet", + ' raises' :"bet" } def parseActionType(line): if (line.startswith("Uncalled bet")):