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