Browse Source

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
master
Chaz Littlejohn 13 years ago
parent
commit
710fc924bf
  1. 3
      pyfpdb/Database.py

3
pyfpdb/Database.py

@ -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…
Cancel
Save