From b3090851dae0ef4217162d30a2049906f47d6dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 20 Jan 2012 15:17:11 +0100 Subject: [PATCH] fix quote --- tabellio/pcfdb/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 0018560..20b7d7e 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -434,8 +434,8 @@ class SyncFromPcfDbView(BrowserView): cursor = self.db_connection.cursor() where_ts = '' if timestamp: - where_ts = cursor.mogrify('AND (t_pershistoline.ts > %s - OR t_pers.ts > %s)', (timestamp, timestamp)) + where_ts = cursor.mogrify('''AND (t_pershistoline.ts > %s + OR t_pers.ts > %s)''', (timestamp, timestamp)) # previous deputies cursor.execute('''SELECT t_pers.id, t_pers.nom, prenom, sexe, datenaiss,