From ed5234d24af67c1fde1bc778d5619b8240aa1fec Mon Sep 17 00:00:00 2001 From: gimick Date: Wed, 23 Mar 2011 09:38:50 +0000 Subject: [PATCH] GUI: BB graph not working in postgres - add additional group-by column --- pyfpdb/SQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 6ca016f3..69f4a0b2 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -3401,7 +3401,7 @@ class Sql: AND hp.tourneysPlayersId IS NULL - GROUP BY h.startTime, hp.handId, hp.sawShowdown, hp.totalProfit + GROUP BY h.startTime, hp.handId, hp.sawShowdown, ( hp.totalProfit / ( gt.bigBlind * 2 ) ) * 100 ORDER BY h.startTime""" self.query['getRingProfitAllHandsPlayerIdSiteInDollars'] = """