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:
Chaz Littlejohn 2011-04-09 03:03:20 +00:00
parent e47e76bfb0
commit 710fc924bf

View File

@ -2210,6 +2210,9 @@ class Database:
hc['position'] = pos[pdata[p]['position']] hc['position'] = pos[pdata[p]['position']]
hc['tourneyTypeId'] = pdata[p]['tourneyTypeId'] hc['tourneyTypeId'] = pdata[p]['tourneyTypeId']
hc['styleKey'] = styleKey hc['styleKey'] = styleKey
for i in range(len(line)):
if line[i]: line[i] = 1
else: line[i] = 0
hc['line'] = line hc['line'] = line
hc['game'] = [hc['gametypeId'] hc['game'] = [hc['gametypeId']
,hc['playerId'] ,hc['playerId']