make it run with pgsql (gives pretty strange results tho)

This commit is contained in:
steffen123 2010-08-13 00:34:56 +02:00
parent f77e8ec714
commit 471726d450

View File

@ -2053,8 +2053,12 @@ class Database:
result=cursor.fetchone() result=cursor.fetchone()
if result != None: if result != None:
expectedValues = ('comment', 'tourneyName', 'matrixIdProcessed', 'totalRebuyCount', 'totalAddOnCount', if self.backend == Database.PGSQL:
'prizepool', 'startTime', 'entries', 'commentTs', 'endTime') expectedValues = ('comment', 'tourneyname', 'matrixIdProcessed', 'totalRebuyCount', 'totalAddOnCount',
'prizepool', 'startTime', 'entries', 'commentTs', 'endTime')
else:
expectedValues = ('comment', 'tourneyName', 'matrixIdProcessed', 'totalRebuyCount', 'totalAddOnCount',
'prizepool', 'startTime', 'entries', 'commentTs', 'endTime')
updateDb=False updateDb=False
resultDict = dict(zip(columnNames, result)) resultDict = dict(zip(columnNames, result))