From 896de37d0d9b91aae200537dc2902e236ed83669 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 26 Jan 2010 01:00:22 +0800 Subject: [PATCH] Fix hudCache update semantics --- pyfpdb/fpdb_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index ec480831..76705839 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -449,7 +449,9 @@ class Importer: # Call hudcache update if not in bulk import mode # FIXME: Need to test for bulk import that isn't rebuilding the cache if self.callHud: - hand.updateHudCache(self.database) + for hand in handlist: + if hand is not None: + hand.updateHudCache(self.database) self.database.commit() #pipe the Hands.id out to the HUD