[NEWIMPORT] Add call to HUD for auto import

Make sure the matching db_handid is recorded in the Hand object for later use
This commit is contained in:
Worros
2009-12-06 23:02:07 +08:00
parent 909c2bd0fc
commit 0061bd0644
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -430,6 +430,11 @@ class Importer:
#try, except duplicates here?
#hand.prepInsert()
hand.insert(self.database)
if self.callHud and hand.dbid_hands != 0:
#print "DEBUG: call to HUD: handsId: %s" % hand.dbid_hands
#pipe the Hands.id out to the HUD
# print "fpdb_import: sending hand to hud", handsId, "pipe =", self.caller.pipe_to_hud
self.caller.pipe_to_hud.stdin.write("%s" % (hand.dbid_hands) + os.linesep)
errors = getattr(hhc, 'numErrors')
stored = getattr(hhc, 'numHands')