aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 66845887..dcc43e12 100644
--- a/python/quote_parsing/parse_emails.py
+++ b/python/quote_parsing/parse_emails.py
@@ -807,7 +807,7 @@ regex_dict = {
def get_current_version(index, series, d, conn):
with conn.cursor() as c:
c.execute(
- "select max(version) FROM index_version "
+ "SELECT min(version) FROM index_version "
"WHERE index=%s and series=%s and %s <= lastdate",
(index.upper(), series, d),
)