* Updated storeHandsPlayers() to insert via executemany() if 'saveActions' is False and via looped execute() to call get_last_insert_id() if 'saveActions' is True
This commit is contained in:
parent
76b2dec2b6
commit
9c225a5b72
|
@ -1782,9 +1782,12 @@ class Database:
|
||||||
#print "DEBUG: q: %s" % q
|
#print "DEBUG: q: %s" % q
|
||||||
c = self.get_cursor()
|
c = self.get_cursor()
|
||||||
|
|
||||||
for r in inserts:
|
if self.import_options['saveActions']:
|
||||||
c.execute(q, r)
|
for r in inserts:
|
||||||
hpid[(r[0], r[1])] = self.get_last_insert_id(c)
|
c.execute(q, r)
|
||||||
|
hpid[(r[0], r[1])] = self.get_last_insert_id(c)
|
||||||
|
else:
|
||||||
|
c.executemany(q, inserts)
|
||||||
|
|
||||||
return hpid
|
return hpid
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user