From 45210f066869900701a4efcc45d73a3c2d272f35 Mon Sep 17 00:00:00 2001 From: gimick Date: Sat, 17 Jul 2010 16:52:10 +0100 Subject: [PATCH] Revert "Update graph and session queries to identify ring games" This reverts commit 585fd2feb2652d40895bdf67e9fa9d8e217b7450. --- pyfpdb/SQL.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index e2a72bf5..26d5dc6b 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -2826,7 +2826,7 @@ class Sql: AND h.startTime < '' - AND gt.type is 'ring' + AND hp.tourneysPlayersId IS NULL GROUP BY h.startTime, hp.handId, hp.sawShowdown, hp.totalProfit ORDER BY h.startTime""" @@ -2844,7 +2844,7 @@ class Sql: INNER JOIN Players p on (p.Id = hp.playerId) WHERE hp.playerId in AND date_format(h.startTime, '%Y-%m-%d') - AND gt.type is 'ring' + AND hp.tourneysPlayersId IS NULL ORDER by time""" elif db_server == 'postgresql': self.query['sessionStats'] = """ @@ -2856,7 +2856,7 @@ class Sql: INNER JOIN Players p on (p.Id = hp.playerId) WHERE hp.playerId in AND h.startTime - AND gt.type is 'ring' + AND hp.tourneysPlayersId IS NULL ORDER by time""" elif db_server == 'sqlite': self.query['sessionStats'] = """ @@ -2868,7 +2868,7 @@ class Sql: INNER JOIN Players p on (p.Id = hp.playerId) WHERE hp.playerId in AND h.startTime - AND gt.type is 'ring' + AND hp.tourneysPlayersId IS NULL ORDER by time"""