From e218e0c5c9eb35853239b780027be44cfedca02a Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 11 Nov 2010 00:28:29 +0800 Subject: [PATCH] Absolute: Fix another tourney file name variant --- pyfpdb/AbsoluteToFpdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/AbsoluteToFpdb.py b/pyfpdb/AbsoluteToFpdb.py index b8eaac01..e0ceed48 100755 --- a/pyfpdb/AbsoluteToFpdb.py +++ b/pyfpdb/AbsoluteToFpdb.py @@ -72,7 +72,7 @@ class Absolute(HandHistoryConverter): re_RingInfoFromFilename = re.compile(ur".*IHH([0-9]+) (?P.*) -") re_TrnyInfoFromFilename = re.compile( ur"IHH\s?([0-9]+) (?P.*) "\ - ur"ID (?P\d+)\s?\((?P
\d+)\) .* "\ + ur"ID (?P\d+)\s?(\((?P
\d+)\))? .* "\ ur"(?:\$|\s€|)(?P[0-9.]+)\s*\+\s*(?:\$|\s€|)(?P[0-9.]+)" ) @@ -194,6 +194,8 @@ class Absolute(HandHistoryConverter): else self.re_RingInfoFromFilename fname_info = fname_re.search(self.in_path) + #print "DEBUG: fname_info.groupdict(): %s" %(fname_info.groupdict()) + if m is None or fname_info is None: if m is None: tmp = hand.handText[0:100]