From 9eb0138f3d1a18de3364b5811bc4b71613b15b44 Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 30 Mar 2011 11:13:03 +0800 Subject: [PATCH] THP: Make less noisy --- pyfpdb/TestHandsPlayers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyfpdb/TestHandsPlayers.py b/pyfpdb/TestHandsPlayers.py index dc7cb4a7..d6e76d38 100755 --- a/pyfpdb/TestHandsPlayers.py +++ b/pyfpdb/TestHandsPlayers.py @@ -32,6 +32,8 @@ import Options import datetime import pytz +DEBUG = False + class FpdbError: def __init__(self, sitename): @@ -172,8 +174,8 @@ def compare(leaf, importer, errors, site): # Test if this is a hand history file if filename.endswith('.txt'): # test if there is a .hp version of the file - print "Site: %s" % site - print "Filename: %s" % filename + if DEBUG: print "Site: %s" % site + if DEBUG: print "Filename: %s" % filename importer.addBulkImportImportFileOrDir(filename, site=site) (stored, dups, partial, errs, ttime) = importer.runImport()