From bb6b2ab9a2a73b45eed516c8f8819f214a6c2ae7 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Mon, 26 Oct 2009 12:55:23 +0200 Subject: [PATCH] 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. --- pyfpdb/SQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 13f592cd..3c25963f 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -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 - AND date_format(h.handStart, '%Y-%m-%d') + AND h.handStart ORDER by time""" elif db_server == 'sqlite': self.query['sessionStats'] = """ """