aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-12-07 12:32:42 -0800
committerBryan Newbold <bnewbold@archive.org>2020-12-07 12:32:42 -0800
commit43d49fed5be8cadb8363be0ed4e9f148e1696654 (patch)
tree2e8dbb429d7ceac05a37bce2f14f8b6cbaa5963b
parent64ec041d9d9da9a5135e8a15032adc223112ed94 (diff)
downloadchocula-43d49fed5be8cadb8363be0ed4e9f148e1696654.tar.gz
chocula-43d49fed5be8cadb8363be0ed4e9f148e1696654.zip
SIM: cap maximum year of coverage
-rw-r--r--chocula/directories/sim.py3
1 files changed, 3 insertions, 0 deletions
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