Merge branch 'master' of git://git.assembla.com/fpdb-eric

This commit is contained in:
Worros 2009-02-25 19:35:54 +09:00
commit a6df1b6461

View File

@ -38,7 +38,7 @@ class Everleaf(HandHistoryConverter):
self.re_Board = re.compile(r"\[ (?P<CARDS>.+) \]") self.re_Board = re.compile(r"\[ (?P<CARDS>.+) \]")
try: try:
self.ofile = os.path.join(self.hhdir, file.split("\\")[-2]+"-"+os.path.basename(file)) self.ofile = os.path.join(self.hhdir, file.split(os.path.sep)[-2]+"-"+os.path.basename(file))
except: except:
self.ofile = os.path.join(self.hhdir, "x"+strftime("%d-%m-%y")+os.path.basename(file)) self.ofile = os.path.join(self.hhdir, "x"+strftime("%d-%m-%y")+os.path.basename(file))
@ -73,6 +73,8 @@ class Everleaf(HandHistoryConverter):
structure = "nl" structure = "nl"
elif m.group('LTYPE') == "PL": elif m.group('LTYPE') == "PL":
structure = "pl" structure = "pl"
else:
structure = "fl" # we don't support it, but there should be how to detect it at least.
if m.group('GAME') == "Hold\'em": if m.group('GAME') == "Hold\'em":
game = "hold" game = "hold"