From 09f1616e876d3e023c41c442965b06d8c7952383 Mon Sep 17 00:00:00 2001 From: Chaz Littlejohn Date: Tue, 22 Mar 2011 20:49:27 +0000 Subject: [PATCH] fixed a small bug in storeHudCache --- pyfpdb/Database.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 29047a06..5fe97be5 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1949,11 +1949,9 @@ class Database: insert_hudcache = insert_hudcache.replace('%s', self.sql.query['placeholder']) #print "DEBUG: %s %s %s" %(hid, pids, pdata) - inserts = [] for p in pdata: #NOTE: Insert new stats at right place because SQL needs strict order line = [] - line.append(1) # HDs line.append(pdata[p]['street0VPI']) line.append(pdata[p]['street0Aggr']) @@ -2042,7 +2040,8 @@ class Database: line.append(pdata[p]['street2Raises']) line.append(pdata[p]['street3Raises']) line.append(pdata[p]['street4Raises']) - + + hc, hcs = {}, [] hc['gametypeId'] = gid hc['playerId'] = pids[p] hc['activeSeats'] = len(pids)