From 471726d45030aad43dd9e227f22fe089b88be02f Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 13 Aug 2010 00:34:56 +0200 Subject: [PATCH] make it run with pgsql (gives pretty strange results tho) --- pyfpdb/Database.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 64bdec12..ed4fa0a9 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -2053,8 +2053,12 @@ class Database: result=cursor.fetchone() if result != None: - expectedValues = ('comment', 'tourneyName', 'matrixIdProcessed', 'totalRebuyCount', 'totalAddOnCount', - 'prizepool', 'startTime', 'entries', 'commentTs', 'endTime') + if self.backend == Database.PGSQL: + 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 resultDict = dict(zip(columnNames, result))