From 2ca3815de1f3ef6eeed2b1b3643311dcbc646602 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 10 May 2021 16:54:27 +0200 Subject: [PATCH] Updated CSET-foretell logs; updated coupcast month --- src/platforms/coupcast-fetch.js | 2 +- src/platforms/csetforetell-fetch.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/platforms/coupcast-fetch.js b/src/platforms/coupcast-fetch.js index 705f0e2..4833ce3 100644 --- a/src/platforms/coupcast-fetch.js +++ b/src/platforms/coupcast-fetch.js @@ -8,7 +8,7 @@ import {calculateStars} from "../utils/stars.js" import {upsert} from "../utils/mongo-wrapper.js" /* Definitions */ -let coupCastEndpoint = "https://www.oneearthfuture.org/sites/all/themes/stability/stability_sub/data/dashboard_2021_code_02.csv" +let coupCastEndpoint = "https://www.oneearthfuture.org/sites/all/themes/stability/stability_sub/data/dashboard_2021_code_05.csv" var datenow = new Date(); var currentmonth = datenow.getMonth() + 1; diff --git a/src/platforms/csetforetell-fetch.js b/src/platforms/csetforetell-fetch.js index ce8af67..67c3e59 100644 --- a/src/platforms/csetforetell-fetch.js +++ b/src/platforms/csetforetell-fetch.js @@ -120,7 +120,7 @@ function sleep(ms) { /* Body */ async function csetforetell_inner(cookie){ - let i=1 + let i=0 let response = await fetchPage(i, cookie) let results = [] let init = Date.now() @@ -129,9 +129,8 @@ async function csetforetell_inner(cookie){ let htmlLines = response.split("\n") let h4elements = htmlLines.filter(str => str.includes("