From 341db07cc25fe3385c48c430bbb04b9b12a3659d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 29 Dec 2011 13:04:24 +0100 Subject: [PATCH] use t_pershistoline timestamp for deputies --- tabellio/pcfdb/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 4307c73..5a3a606 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -434,7 +434,7 @@ class SyncFromPcfDbView(BrowserView): cursor = self.db_connection.cursor() where_ts = '' if timestamp: - where_ts = cursor.mogrify('AND t_pers.ts > %s', (timestamp,)) + where_ts = cursor.mogrify('AND t_pershistoline.ts > %s', (timestamp,)) # previous deputies cursor.execute('''SELECT t_pers.id, t_pers.nom, prenom, sexe, datenaiss,