also sync deputies on t_pers timestamp, not just t_pershistoline (#1232)
parent
14f325d6ca
commit
c03861a19c
|
@ -434,7 +434,8 @@ class SyncFromPcfDbView(BrowserView):
|
|||
cursor = self.db_connection.cursor()
|
||||
where_ts = ''
|
||||
if timestamp:
|
||||
where_ts = cursor.mogrify('AND t_pershistoline.ts > %s', (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,
|
||||
|
|
Reference in New Issue