[NEWIMPORT] Add a commit at the end of the fpdb_import cycle

This commit is contained in:
Worros 2009-12-17 00:40:36 +08:00 committed by kangaderoo
parent 5e4cc1c5eb
commit 72cf9a61ca

View File

@ -442,6 +442,7 @@ class Importer:
#pipe the Hands.id out to the HUD
print "fpdb_import: sending hand to hud", hand.dbid_hands, "pipe =", self.caller.pipe_to_hud
self.caller.pipe_to_hud.stdin.write("%s" % (hand.dbid_hands) + os.linesep)
self.database.commit()
errors = getattr(hhc, 'numErrors')
stored = getattr(hhc, 'numHands')