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,