refactor: scrape all 12 months per park before moving to next park
All checks were successful
Build and Deploy / Build & Push (push) Successful in 2m54s
All checks were successful
Build and Deploy / Build & Push (push) Successful in 2m54s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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)! });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user