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:
parent
73262e808c
commit
bb6b2ab9a2
|
@ -2498,7 +2498,7 @@ class Sql:
|
||||||
INNER JOIN Sites s on (s.Id = gt.siteId)
|
INNER JOIN Sites s on (s.Id = gt.siteId)
|
||||||
INNER JOIN Players p on (p.Id = hp.playerId)
|
INNER JOIN Players p on (p.Id = hp.playerId)
|
||||||
WHERE hp.playerId in <player_test>
|
WHERE hp.playerId in <player_test>
|
||||||
AND date_format(h.handStart, '%Y-%m-%d') <datestest>
|
AND h.handStart <datestest>
|
||||||
ORDER by time"""
|
ORDER by time"""
|
||||||
elif db_server == 'sqlite':
|
elif db_server == 'sqlite':
|
||||||
self.query['sessionStats'] = """ """
|
self.query['sessionStats'] = """ """
|
||||||
|
|
Loading…
Reference in New Issue
Block a user