From f0c9f6a79659add0f906334c1730d864cc8f23d9 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 14 Sep 2023 22:16:52 +0100 Subject: [PATCH] site: remove temporary code for history (#31) [skip ci] --- site/generate.mjs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/site/generate.mjs b/site/generate.mjs index 61d08b5..015f1dd 100644 --- a/site/generate.mjs +++ b/site/generate.mjs @@ -476,24 +476,12 @@ walkStruct(struct); let history; try { - // history = await (await fetch('https://test262.fyi/data/history.json')).json(); - // tmp: backfill a couple of days of data, and convert kiesel versions to full hashes - history = await (await fetch('https://raw.githubusercontent.com/CanadaHonk/test262.fyi/f6a51223ec9e6db2d9ce4868d17b6ac033190ef7/backfill.json')).json(); + history = await (await fetch('https://test262.fyi/data/history.json')).json(); } catch { // failed, probably does not exist or ????? history = {}; } - // tmp: history was an array for a few days, convert to new format - if (Array.isArray(history)) { - const old = history; - - history = {}; - for (const x of old) { - history[(new Date(x.time)).toISOString().split('T')[0]] = x; - } - } - const date = (new Date()).toISOString().split('T')[0]; const indexResults = JSON.parse(readFileSync(join(dataDir, 'index.json')));