THP: Ignore several errors

tourneyId, tourneyTypeId, tourneysPlayersIds are variable,
This commit is contained in:
Worros 2011-02-27 20:52:17 +08:00
parent 7be88ef080
commit 7d05455296

View File

@ -125,8 +125,11 @@ def compare_handsplayers_file(filename, importer, errors):
# The stats match - continue # The stats match - continue
pass pass
else: else:
# Stats don't match - Doh! if stat == 'tourneyTypeId' or stat == 'tourneysPlayersIds':
errors.error_report(filename, hand, stat, ghash, testhash, p) # Not and error
pass
else:
errors.error_report(filename, hand, stat, ghash, testhash, p)
except KeyError, e: except KeyError, e:
errors.error_report(filename, False, "KeyError: '%s'" % stat, False, False, p) errors.error_report(filename, False, "KeyError: '%s'" % stat, False, False, p)
@ -152,7 +155,7 @@ def compare_hands_file(filename, importer, errors):
pass pass
else: else:
# Stats don't match. # 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. # Not an error. gametypeIds are dependent on the order added to the db.
#print "DEBUG: Skipping mismatched gamtypeId" #print "DEBUG: Skipping mismatched gamtypeId"
pass pass