summaryrefslogtreecommitdiffstats
path: root/tabellio
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-05 11:28:16 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-05 11:28:16 (GMT)
commita31db7bd37a768001ed2778230af1af3a5221100 (patch)
tree1ae1aa8b780dd81621feeb1af279f9dd977eeaee /tabellio
parente180725fb8bf8d168ffa948ee4581f8691443420 (diff)
downloadtabellio.pcfdb-a31db7bd37a768001ed2778230af1af3a5221100.zip
tabellio.pcfdb-a31db7bd37a768001ed2778230af1af3a5221100.tar.gz
tabellio.pcfdb-a31db7bd37a768001ed2778230af1af3a5221100.tar.bz2
use id from t_histo for dossiers
Diffstat (limited to 'tabellio')
-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 2ed2a27..d6be604 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -643,7 +643,7 @@ class SyncFromPcfDbView(BrowserView):
where_ts = cursor.mogrify('AND t_dossier.ts > %s', (timestamp,))
### Handle t_dossiers
- cursor.execute('''SELECT t_dossier.id, t_dossier.st, t_dossier.type,
+ cursor.execute('''SELECT t_histo.id, t_dossier.st, t_dossier.type,
t_dossier.sess, t_dossier.no, t_dossier.intit,
t_dossier.auteurs, t_dossier.datedep,
t_histo.curcom, t_histo.comppols