summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-01-20 14:17:11 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2012-01-20 14:17:11 (GMT)
commitb3090851dae0ef4217162d30a2049906f47d6dfc (patch)
tree2562937245742c34d43ea98a165680f1019a15f3
parentc03861a19ce5eec878eb4c149f41da3503110aca (diff)
downloadtabellio.pcfdb-b3090851dae0ef4217162d30a2049906f47d6dfc.zip
tabellio.pcfdb-b3090851dae0ef4217162d30a2049906f47d6dfc.tar.gz
tabellio.pcfdb-b3090851dae0ef4217162d30a2049906f47d6dfc.tar.bz2
fix quote
-rw-r--r--tabellio/pcfdb/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 0018560..20b7d7e 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -434,8 +434,8 @@ class SyncFromPcfDbView(BrowserView):
cursor = self.db_connection.cursor()
where_ts = ''
if timestamp:
- where_ts = cursor.mogrify('AND (t_pershistoline.ts > %s
- OR t_pers.ts > %s)', (timestamp, 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,