From 915c948eee663ac3404b78337129d8e596d108da Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 22 Sep 2008 22:48:12 +0100 Subject: [PATCH] p94 - it now skips rather than dies on tourney summaries --- pyfpdb/fpdb_import.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index 0689009e..f4fe56ab 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -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)