p94 - it now skips rather than dies on tourney summaries

This commit is contained in:
steffen123 2008-09-22 22:48:12 +01:00
parent 4e8a09ff84
commit 915c948eee

View File

@ -76,6 +76,14 @@ def import_file_dict(options, settings, callHud=False):
print "Opened file", options.inputFile, "and connected to MySQL on", options.server
line=inputFile.readline()
if line.find("Tournament Summary")!=-1:
print "TODO: implement importing tournament summaries"
inputFile.close()
cursor.close()
db.close()
return 0
site=fpdb_simple.recogniseSite(line)
category=fpdb_simple.recogniseCategory(line)
inputFile.seek(0)