From bc5777c9e2be8efff69d61af34d154753c49d432 Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 4 Apr 2026 10:25:20 -0400 Subject: [PATCH] refactor: scrape all 12 months per park before moving to next park Co-Authored-By: Claude Sonnet 4.6 --- scripts/scrape.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/scrape.ts b/scripts/scrape.ts index 4fd8ede..abc8e0a 100644 --- a/scripts/scrape.ts +++ b/scripts/scrape.ts @@ -56,10 +56,10 @@ async function main() { return; } - // Build the full work queue: month × park + // Build the full work queue: park × month (all 12 months per park before moving on) const queue: { month: number; park: (typeof PARKS)[0]; apiId: number }[] = []; - for (const month of MONTHS) { - for (const park of ready) { + for (const park of ready) { + for (const month of MONTHS) { if (!FORCE && isMonthScraped(db, park.id, YEAR, month)) continue; queue.push({ month, park, apiId: getApiId(db, park.id)! }); }