Fix session timestamp range

PostgreSQL does automatic argument conversion/formatting when dealing
with timestamps. This simplification allows the session stats to be
generated with PostgreSQL as db backend.
This commit is contained in:
Mika Bostrom 2009-10-26 12:55:23 +02:00
parent 73262e808c
commit bb6b2ab9a2

View File

@ -2498,7 +2498,7 @@ class Sql:
INNER JOIN Sites s on (s.Id = gt.siteId)
INNER JOIN Players p on (p.Id = hp.playerId)
WHERE hp.playerId in <player_test>
AND date_format(h.handStart, '%Y-%m-%d') <datestest>
AND h.handStart <datestest>
ORDER by time"""
elif db_server == 'sqlite':
self.query['sessionStats'] = """ """