FTP: Make Summary split more careful

This prevents the import from crashing on Run It Twice hand histories.
This commit is contained in:
Worros 2011-01-27 12:42:06 +08:00
parent de28aa7dc0
commit db3df7b42e

View File

@ -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 = {}