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

This commit is contained in:
Worros
2009-12-24 03:09:10 +08:00
committed by kangaderoo
parent 5e4cc1c5eb
commit 72cf9a61ca
+1
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')