fix sql select for persons
This commit is contained in:
parent
1c3baa46c9
commit
c5ba6c48e6
|
@ -643,8 +643,8 @@ class SyncFromPcfDbView(BrowserView):
|
||||||
where_ts = cursor.mogrify('AND t_pers.ts > %s', (timestamp,))
|
where_ts = cursor.mogrify('AND t_pers.ts > %s', (timestamp,))
|
||||||
cursor.execute('''SELECT t_pers.id, t_pers.nom, prenom, sexe, datenaiss
|
cursor.execute('''SELECT t_pers.id, t_pers.nom, prenom, sexe, datenaiss
|
||||||
FROM t_pers
|
FROM t_pers
|
||||||
WHERE t_pers.st = 'S_CREATED' OR
|
WHERE (t_pers.st = 'S_CREATED' OR
|
||||||
t_pers.st = 'S_DEAD'
|
t_pers.st = 'S_DEAD')
|
||||||
%s''' % where_ts)
|
%s''' % where_ts)
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
|
Reference in New Issue