From c5ba6c48e6605b28fa9911fc1b02d7559083e142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 30 Nov 2011 22:37:57 +0100 Subject: [PATCH] fix sql select for persons --- 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 fbf2ccc..4307c73 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -643,8 +643,8 @@ class SyncFromPcfDbView(BrowserView): where_ts = cursor.mogrify('AND t_pers.ts > %s', (timestamp,)) cursor.execute('''SELECT t_pers.id, t_pers.nom, prenom, sexe, datenaiss FROM t_pers - WHERE t_pers.st = 'S_CREATED' OR - t_pers.st = 'S_DEAD' + WHERE (t_pers.st = 'S_CREATED' OR + t_pers.st = 'S_DEAD') %s''' % where_ts) count = 0