Fix hudCache update semantics

This commit is contained in:
Worros 2010-01-26 01:00:22 +08:00
parent 81b9b51707
commit 896de37d0d

View File

@ -449,7 +449,9 @@ class Importer:
# Call hudcache update if not in bulk import mode # Call hudcache update if not in bulk import mode
# FIXME: Need to test for bulk import that isn't rebuilding the cache # FIXME: Need to test for bulk import that isn't rebuilding the cache
if self.callHud: if self.callHud:
hand.updateHudCache(self.database) for hand in handlist:
if hand is not None:
hand.updateHudCache(self.database)
self.database.commit() self.database.commit()
#pipe the Hands.id out to the HUD #pipe the Hands.id out to the HUD