From 78f5afde6f1bbb7e9e057e725c9db52cf2276419 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 6 Nov 2023 20:22:25 -0500 Subject: [PATCH] vault backup: 2023-11-06 20:22:25 --- api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.ts b/api.ts index cfd6652..deb8900 100644 --- a/api.ts +++ b/api.ts @@ -48,7 +48,7 @@ function apply_guidance(doc: any) { function setAnchors(items, channelFirstChar, v1ds, v0ds, histKey) { for (let item of items) { // Update the last_price with the most recent price - const years = Object.keys(item.season); + const years = Object.keys(item.season).map(Number).filter(year => year >= 2020); if (years.length > 0) { const recentYear = Math.max(...years.map(Number)); const earlyYear = Math.min(...years.map(Number));