Daily forecast fix?

This commit is contained in:
2026-06-24 11:34:29 -04:00
parent 2476675493
commit 6f35c647c2

View File

@@ -187,7 +187,7 @@ function remapWeatherFields(row) {
export async function getOpenMeteo(lat, lon, start, end) { export async function getOpenMeteo(lat, lon, start, end) {
const base = start && end const base = start && end
? `&start_date=${start.slice(0,10)}&end_date=${end.slice(0,10)}&past_days=0` ? `&start_date=${start.slice(0,10)}&end_date=${end.slice(0,10)}`
: `&forecast_days=7` : `&forecast_days=7`
const [weather, aq, marine] = await Promise.allSettled([ const [weather, aq, marine] = await Promise.allSettled([