Make new db insert code "usable"

Next step, make the players insert. Function doesn't exist at the moment and crashes when NEWIMPROT set to true
This commit is contained in:
Worros
2009-07-19 15:45:18 +08:00
parent e113a1e692
commit d546557ef7
2 changed files with 12 additions and 5 deletions
+4 -4
View File
@@ -317,12 +317,12 @@ class Importer:
(stored, duplicates, partial, errors, ttime) = self.import_fpdb_file(out_path, site)
elif (conv.getStatus() and self.NEWIMPORT == True):
#This code doesn't do anything yet
handlist = hhc.getProcessedHands()
self.pos_in_file[file] = hhc.getLastCharacterRead()
handlist = conv.getProcessedHands()
self.pos_in_file[file] = conv.getLastCharacterRead()
for hand in handlist:
hand.prepInsert()
hand.insert()
hand.prepInsert(self.fdb)
hand.insert(self.fdb)
else:
# conversion didn't work
# TODO: appropriate response?