From 739aaf22c209db5d292a05a9db6be229ebca8f2a Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sun, 4 Jun 2006 18:10:23 +0000 Subject: [PATCH] [roger]add missing () --- src/common/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logger.py b/src/common/logger.py index bdaa11a39..a1fbefa21 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -358,7 +358,7 @@ class Logger: # 3 - 8 (we avoid the last 2 lines but we still return 5 asked) self.cur.execute(''' SELECT time, kind, message FROM logs - WHERE %s AND kind IN (%d, %d, %d, %d) AND time > %d + WHERE (%s) AND kind IN (%d, %d, %d, %d) AND time > %d ORDER BY time DESC LIMIT %d OFFSET %d ''' % (where_sql, constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV, constants.KIND_SINGLE_MSG_SENT, constants.KIND_CHAT_MSG_SENT,