From 43d49fed5be8cadb8363be0ed4e9f148e1696654 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 7 Dec 2020 12:32:42 -0800 Subject: SIM: cap maximum year of coverage --- chocula/directories/sim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chocula/directories/sim.py b/chocula/directories/sim.py index e51afa3..25495dd 100644 --- a/chocula/directories/sim.py +++ b/chocula/directories/sim.py @@ -59,6 +59,9 @@ class SimLoader(DirectoryLoader): last_year = row["Last Volume"] if last_year: last_year = int(last_year) + # should be no SIM content after this year + if last_year > 2017: + last_year = 2017 extra["last_year"] = last_year else: last_year = None -- cgit v1.2.3