Fix major bug in fpdb_import
Hat tip to Eric
This commit is contained in:
parent
08a4d568cc
commit
e5ab933659
|
@ -88,7 +88,7 @@ class HandHistoryConverter:
|
||||||
self.hhbase = os.path.expanduser(self.hhbase)
|
self.hhbase = os.path.expanduser(self.hhbase)
|
||||||
self.hhdir = os.path.join(self.hhbase,sitename)
|
self.hhdir = os.path.join(self.hhbase,sitename)
|
||||||
self.gametype = []
|
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()
|
self.rexx = FpdbRegex.FpdbRegex()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
|
@ -205,6 +205,9 @@ class Importer:
|
||||||
if filter == "EverleafToFpdb":
|
if filter == "EverleafToFpdb":
|
||||||
print "converting ", file
|
print "converting ", file
|
||||||
conv = EverleafToFpdb.Everleaf(self.config, file)
|
conv = EverleafToFpdb.Everleaf(self.config, file)
|
||||||
|
elif filter == "FulltiltToFpdb":
|
||||||
|
print "converting ", file
|
||||||
|
conv = FulltiltToFpdb.Fulltilt(self.config, file)
|
||||||
else:
|
else:
|
||||||
print "Unknown filter ", filter
|
print "Unknown filter ", filter
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user