fix sql select for persons

This commit is contained in:
Frédéric Péters 2011-11-30 22:37:57 +01:00
parent 1c3baa46c9
commit c5ba6c48e6
1 changed files with 2 additions and 2 deletions

View File

@ -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