fix quote

This commit is contained in:
Frédéric Péters 2012-01-20 15:17:11 +01:00
parent c03861a19c
commit b3090851da
1 changed files with 2 additions and 2 deletions

View File

@ -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,