Fixed several errors in the new storeHudCache which were preventing the data from being imported in full

This commit is contained in:
Chaz Littlejohn
2011-04-04 06:32:57 +00:00
parent d98a28ea0a
commit c518c482ac
2 changed files with 10 additions and 13 deletions
+2 -2
View File
@@ -495,7 +495,7 @@ class Importer:
hbulk = hand.insertHands(self.database, hbulk, fileId, doinsert, self.settings['testData'])
hcbulk = hand.updateHudCache(self.database, hcbulk, doinsert)
ihands.append(hand)
to_hud.append(id)
to_hud.append(hand.dbid_hands)
except Exceptions.FpdbHandDuplicate:
duplicates += 1
self.database.commit()
@@ -512,7 +512,7 @@ class Importer:
if self.caller:
for hid in to_hud:
try:
print _("fpdb_import: sending hand to hud"), hand.dbid_hands, "pipe =", self.caller.pipe_to_hud
print _("fpdb_import: sending hand to hud"), hid, "pipe =", self.caller.pipe_to_hud
self.caller.pipe_to_hud.stdin.write("%s" % (hid) + os.linesep)
except IOError, e:
log.error(_("Failed to send hand to HUD: %s") % e)