vault backup: 2023-11-06 20:22:25
This commit is contained in:
parent
17b3f64be5
commit
78f5afde6f
2
api.ts
2
api.ts
@ -48,7 +48,7 @@ function apply_guidance(doc: any) {
|
|||||||
function setAnchors(items, channelFirstChar, v1ds, v0ds, histKey) {
|
function setAnchors(items, channelFirstChar, v1ds, v0ds, histKey) {
|
||||||
for (let item of items) {
|
for (let item of items) {
|
||||||
// Update the last_price with the most recent price
|
// 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) {
|
if (years.length > 0) {
|
||||||
const recentYear = Math.max(...years.map(Number));
|
const recentYear = Math.max(...years.map(Number));
|
||||||
const earlyYear = Math.min(...years.map(Number));
|
const earlyYear = Math.min(...years.map(Number));
|
||||||
|
Loading…
Reference in New Issue
Block a user