From c5acd04bb682c168c8cc7d701c63eb8e7af72c01 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Tue, 10 Aug 2010 01:27:25 +0200 Subject: [PATCH] This makes HUD Cache work again but without tourneytypeid - one of these lines breaks it --- pyfpdb/SQL.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 5ffb47bc..0ee2ad73 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -2988,7 +2988,6 @@ class Sql: ,playerId ,activeSeats ,position - ,tourneyTypeId ,styleKey ,HDs ,wonWhenSeenStreet1 @@ -3078,7 +3077,6 @@ class Sql: when hp.position = '9' then 'E' else 'E' end AS hc_position - ,t.tourneyTypeId ,date_format(h.startTime, 'd%y%m%d') ,count(1) ,sum(wonWhenSeenStreet1) @@ -3152,14 +3150,11 @@ class Sql: ,sum(hp.street4Raises) FROM HandsPlayers hp INNER JOIN Hands h ON (h.id = hp.handId) - INNER JOIN TourneysPlayers tp ON (tp.id = hp.tourneysPlayersId) - INNER JOIN Tourneys t ON (t.id = tp.tourneyId) GROUP BY h.gametypeId ,hp.playerId ,h.seats ,hc_position - ,t.tourneyTypeId ,date_format(h.startTime, 'd%y%m%d') """ elif db_server == 'postgresql': @@ -3169,7 +3164,6 @@ class Sql: ,playerId ,activeSeats ,position - ,tourneyTypeId ,styleKey ,HDs ,wonWhenSeenStreet1 @@ -3259,7 +3253,6 @@ class Sql: when hp.position = '9' then 'E' else 'E' end AS hc_position - ,t.tourneyTypeId ,'d' || to_char(h.startTime, 'YYMMDD') ,count(1) ,sum(wonWhenSeenStreet1) @@ -3333,14 +3326,11 @@ class Sql: ,sum(CAST(hp.street4Raises as integer)) FROM HandsPlayers hp INNER JOIN Hands h ON (h.id = hp.handId) - INNER JOIN TourneysPlayers tp ON (tp.id = hp.tourneysPlayersId) - INNER JOIN Tourneys t ON (t.id = tp.tourneyId) GROUP BY h.gametypeId ,hp.playerId ,h.seats ,hc_position - ,t.tourneyTypeId ,to_char(h.startTime, 'YYMMDD') """ else: # assume sqlite @@ -3350,7 +3340,6 @@ class Sql: ,playerId ,activeSeats ,position - ,tourneyTypeId ,styleKey ,HDs ,wonWhenSeenStreet1 @@ -3440,7 +3429,6 @@ class Sql: when hp.position = '9' then 'E' else 'E' end AS hc_position - ,t.tourneyTypeId ,'d' || substr(strftime('%Y%m%d', h.startTime),3,7) ,count(1) ,sum(wonWhenSeenStreet1) @@ -3514,14 +3502,11 @@ class Sql: ,sum(CAST(hp.street4Raises as integer)) FROM HandsPlayers hp INNER JOIN Hands h ON (h.id = hp.handId) - INNER JOIN TourneysPlayers tp ON (tp.id = hp.tourneysPlayersId) - INNER JOIN Tourneys t ON (t.id = tp.tourneyId) GROUP BY h.gametypeId ,hp.playerId ,h.seats ,hc_position - ,t.tourneyTypeId ,'d' || substr(strftime('%Y%m%d', h.startTime),3,7) """