From 2b8b6ec626293bfc8d47461b2874490cc580ffd4 Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 16 Feb 2011 16:14:32 +0800 Subject: [PATCH] FTP: Fix markStreets to correctly identify single draw 'DEAL' This has the knock on effect of fixing pre/post deal stats and almost certainly the same bug that affected the stars parser fixed in e387593967a2 --- pyfpdb/FulltiltToFpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 30444353..29b6d4d2 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -379,8 +379,8 @@ class Fulltilt(HandHistoryConverter): r"(\*\*\* 7TH STREET \*\*\*(?P.+))?", hand.handText,re.DOTALL) elif hand.gametype['base'] in ("draw"): m = re.search(r"(?P.+(?=\*\*\* HOLE CARDS \*\*\*)|.+)" - r"(\*\*\* HOLE CARDS \*\*\*(?P.+(?=\*\*\* FIRST DRAW \*\*\*)|.+))?" - r"(\*\*\* FIRST DRAW \*\*\*(?P.+(?=\*\*\* SECOND DRAW \*\*\*)|.+))?" + r"(\*\*\* HOLE CARDS \*\*\*(?P.+(?=(\*\*\* FIRST DRAW \*\*\*|\*\*\* DRAW \*\*\*))|.+))?" + r"((\*\*\* FIRST DRAW \*\*\*|\*\*\* DRAW \*\*\*)(?P.+(?=\*\*\* SECOND DRAW \*\*\*)|.+))?" r"(\*\*\* SECOND DRAW \*\*\*(?P.+(?=\*\*\* THIRD DRAW \*\*\*)|.+))?" r"(\*\*\* THIRD DRAW \*\*\*(?P.+))?", hand.handText,re.DOTALL)