aboutsummaryrefslogtreecommitdiffstats
path: root/python/quote_parsing/parse_emails.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/quote_parsing/parse_emails.py')
-rw-r--r--python/quote_parsing/parse_emails.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py
index 2aec076c..b2ded4d6 100644
--- a/python/quote_parsing/parse_emails.py
+++ b/python/quote_parsing/parse_emails.py
@@ -583,7 +583,7 @@ def get_current_version(index, series, d, conn):
with conn.cursor() as c:
c.execute(
"select max(version) FROM index_version "
- "WHERE index=%s and series=%s and lastdate <=%s",
+ "WHERE index=%s and series=%s and %s <= lastdate",
(index.upper(), series, d),
)
version, = c.fetchone()