From e5ab933659dc29f208c4027a17450d483189226b Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 20 Feb 2009 16:06:22 +0900 Subject: [PATCH] Fix major bug in fpdb_import Hat tip to Eric --- pyfpdb/HandHistoryConverter.py | 2 +- pyfpdb/fpdb_import.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index f7b1e482..a3179918 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -88,7 +88,7 @@ class HandHistoryConverter: self.hhbase = os.path.expanduser(self.hhbase) self.hhdir = os.path.join(self.hhbase,sitename) self.gametype = [] - self.ofile = os.path.join(self.hhdir,file) + self.ofile = os.path.join(self.hhdir, os.path.basename(file)) self.rexx = FpdbRegex.FpdbRegex() def __str__(self): diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index e2e5302e..e5dafe4c 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -205,6 +205,9 @@ class Importer: if filter == "EverleafToFpdb": print "converting ", file conv = EverleafToFpdb.Everleaf(self.config, file) + elif filter == "FulltiltToFpdb": + print "converting ", file + conv = FulltiltToFpdb.Fulltilt(self.config, file) else: print "Unknown filter ", filter return