THP: Make less noisy

This commit is contained in:
Worros 2011-03-30 11:13:03 +08:00
parent 1e3bbd6047
commit 9eb0138f3d

View File

@ -32,6 +32,8 @@ import Options
import datetime import datetime
import pytz import pytz
DEBUG = False
class FpdbError: class FpdbError:
def __init__(self, sitename): def __init__(self, sitename):
@ -172,8 +174,8 @@ def compare(leaf, importer, errors, site):
# Test if this is a hand history file # Test if this is a hand history file
if filename.endswith('.txt'): if filename.endswith('.txt'):
# test if there is a .hp version of the file # test if there is a .hp version of the file
print "Site: %s" % site if DEBUG: print "Site: %s" % site
print "Filename: %s" % filename if DEBUG: print "Filename: %s" % filename
importer.addBulkImportImportFileOrDir(filename, site=site) importer.addBulkImportImportFileOrDir(filename, site=site)
(stored, dups, partial, errs, ttime) = importer.runImport() (stored, dups, partial, errs, ttime) = importer.runImport()