From 7d05455296765d8139e4d16302f9a70be8df873c Mon Sep 17 00:00:00 2001 From: Worros Date: Sun, 27 Feb 2011 20:52:17 +0800 Subject: [PATCH] THP: Ignore several errors tourneyId, tourneyTypeId, tourneysPlayersIds are variable, --- pyfpdb/TestHandsPlayers.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyfpdb/TestHandsPlayers.py b/pyfpdb/TestHandsPlayers.py index 820c763f..58d56ba1 100644 --- a/pyfpdb/TestHandsPlayers.py +++ b/pyfpdb/TestHandsPlayers.py @@ -125,8 +125,11 @@ def compare_handsplayers_file(filename, importer, errors): # The stats match - continue pass else: - # Stats don't match - Doh! - errors.error_report(filename, hand, stat, ghash, testhash, p) + if stat == 'tourneyTypeId' or stat == 'tourneysPlayersIds': + # Not and error + pass + else: + errors.error_report(filename, hand, stat, ghash, testhash, p) except KeyError, e: errors.error_report(filename, False, "KeyError: '%s'" % stat, False, False, p) @@ -152,7 +155,7 @@ def compare_hands_file(filename, importer, errors): pass else: # Stats don't match. - if datum == "gametypeId" or datum == 'sessionId': + if datum == "gametypeId" or datum == 'sessionId' or datum == 'tourneyId': # Not an error. gametypeIds are dependent on the order added to the db. #print "DEBUG: Skipping mismatched gamtypeId" pass