This fix is needed because psycopg2 module will not implicitly convert
true/false to 1/0 when aggregating numeric data - this becomes a problem when true/false fields are aggregated in the caches e.g. VPIP True in 3 hands will not be implicitly converted to aggregate 3 in the cache
This commit is contained in:
parent
e47e76bfb0
commit
710fc924bf
|
@ -2210,6 +2210,9 @@ class Database:
|
|||
hc['position'] = pos[pdata[p]['position']]
|
||||
hc['tourneyTypeId'] = pdata[p]['tourneyTypeId']
|
||||
hc['styleKey'] = styleKey
|
||||
for i in range(len(line)):
|
||||
if line[i]: line[i] = 1
|
||||
else: line[i] = 0
|
||||
hc['line'] = line
|
||||
hc['game'] = [hc['gametypeId']
|
||||
,hc['playerId']
|
||||
|
|
Loading…
Reference in New Issue
Block a user