From db3df7b42eed8ee303580c9b5fae618dc142c16e Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 27 Jan 2011 12:42:06 +0800 Subject: [PATCH] FTP: Make Summary split more careful This prevents the import from crashing on Run It Twice hand histories. --- pyfpdb/FulltiltToFpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 4e9a4cc8..a95eaf53 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -339,7 +339,7 @@ class Fulltilt(HandHistoryConverter): def readPlayerStacks(self, hand): # Split hand text for FTP, as the regex matches the player names incorrectly # in the summary section - pre, post = hand.handText.split('SUMMARY') + pre, post = hand.handText.split('*** SUMMARY ***') m = self.re_PlayerInfo.finditer(pre) plist = {}