From 3e6c5b6f31f1f02aa66b7fdf16b4351599c518f6 Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 30 Mar 2011 13:29:39 +0800 Subject: [PATCH] THP: Minor updates --- pyfpdb/TestHandsPlayers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyfpdb/TestHandsPlayers.py b/pyfpdb/TestHandsPlayers.py index 1bb7eae8..6917b77e 100755 --- a/pyfpdb/TestHandsPlayers.py +++ b/pyfpdb/TestHandsPlayers.py @@ -21,8 +21,6 @@ import sys import os import codecs -import pprint -import PokerStarsToFpdb from Hand import * import Configuration import Database @@ -31,6 +29,8 @@ import fpdb_import import Options import datetime import pytz +import pprint +pp = pprint.PrettyPrinter(indent=4) DEBUG = False @@ -149,6 +149,9 @@ def compare_hands_file(filename, importer, errors): for hand in handlist: ghash = hand.stats.getHands() + # Delete unused data from hash + del ghash['gsc'] + del ghash['sc'] for datum in ghash: #print "DEBUG: hand: '%s'" % datum try: