diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 6a520c41..f00c35f5 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1474,7 +1474,7 @@ class Database: INNER JOIN Tourneys t ON (t.id = tp.tourneyId)""") rebuild_sql_tourney = rebuild_sql_tourney.replace('', ",t.tourneyTypeId") rebuild_sql_tourney = rebuild_sql_tourney.replace('', where) - print "rebuild_sql_tourney:",rebuild_sql_tourney + #print "rebuild_sql_tourney:",rebuild_sql_tourney self.get_cursor().execute(rebuild_sql_tourney) self.commit() diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index af34c34f..baf305b2 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -3170,6 +3170,7 @@ class Sql: ,playerId ,activeSeats ,position + ,styleKey ,HDs ,wonWhenSeenStreet1 @@ -3259,6 +3260,7 @@ class Sql: when hp.position = '9' then 'E' else 'E' end AS hc_position + ,'d' || to_char(h.startTime, 'YYMMDD') ,count(1) ,sum(wonWhenSeenStreet1) @@ -3332,11 +3334,13 @@ class Sql: ,sum(CAST(hp.street4Raises as integer)) FROM HandsPlayers hp INNER JOIN Hands h ON (h.id = hp.handId) + GROUP BY h.gametypeId ,hp.playerId ,h.seats ,hc_position + ,to_char(h.startTime, 'YYMMDD') """ else: # assume sqlite