summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-12-29 12:04:24 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-12-29 12:04:24 (GMT)
commit341db07cc25fe3385c48c430bbb04b9b12a3659d (patch)
treec75f447f9760572f41704d15f77b3fbbd6673011
parentc5ba6c48e6605b28fa9911fc1b02d7559083e142 (diff)
downloadtabellio.pcfdb-341db07cc25fe3385c48c430bbb04b9b12a3659d.zip
tabellio.pcfdb-341db07cc25fe3385c48c430bbb04b9b12a3659d.tar.gz
tabellio.pcfdb-341db07cc25fe3385c48c430bbb04b9b12a3659d.tar.bz2
use t_pershistoline timestamp for deputies
-rw-r--r--tabellio/pcfdb/sync.py2
1 files changed, 1 insertions, 1 deletions
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,