Fix playername siteid insert
From Gerko on mailing list: > I just did a trial. Use bulkimport for a single Pokerstars file > switch setting and bulkimport a single Full tilt file. > When screening the db all players in the database show the same siteId > (2 for pokerstars) > Or the other way if the first site was Full Tilt. The Lambda function wasn't initialising the lambda function correctly.
This commit is contained in:
parent
33455cb1ac
commit
1cefb2e857
|
@ -1756,10 +1756,10 @@ class Database:
|
||||||
def getSqlPlayerIDs(self, pnames, siteid):
|
def getSqlPlayerIDs(self, pnames, siteid):
|
||||||
result = {}
|
result = {}
|
||||||
if(self.pcache == None):
|
if(self.pcache == None):
|
||||||
self.pcache = LambdaDict(lambda key:self.insertPlayer(key, siteid))
|
self.pcache = LambdaDict(lambda key:self.insertPlayer(key[0], key[1]))
|
||||||
|
|
||||||
for player in pnames:
|
for player in pnames:
|
||||||
result[player] = self.pcache[player]
|
result[player] = self.pcache[(player,siteid)]
|
||||||
# NOTE: Using the LambdaDict does the same thing as:
|
# NOTE: Using the LambdaDict does the same thing as:
|
||||||
#if player in self.pcache:
|
#if player in self.pcache:
|
||||||
# #print "DEBUG: cachehit"
|
# #print "DEBUG: cachehit"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user