Update to forecast lookup

skysql
Rob Hedgpeth 2020-02-18 10:43:14 -06:00
rodzic 75cb91d08c
commit eb9a9a6bba
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -79,7 +79,7 @@ router.get("/", async (req, res, next) => {
// secret (scoring) sauce
function analyzeResults(items) {
items.forEach(item => {
let forecast = forecasts[item.origin + "_" + item.fl_date];
let forecast = forecasts[item.origin + "_" + item.fl_date.toISOString().substring(0, 10)];
// Catch all in case the forecast hasn't been updated
if (forecast === undefined) {