diff --git a/services/websoc-scraper-v2/index.ts b/services/websoc-scraper-v2/index.ts index a0696c0a..d9736a12 100644 --- a/services/websoc-scraper-v2/index.ts +++ b/services/websoc-scraper-v2/index.ts @@ -495,7 +495,7 @@ async function scrape(name: string, term: Term) { ]), ); - logger.info(`Retrieved ${enrollmentHistory.length} enrollment history entries`); + logger.info(`Retrieved ${Object.keys(enrollmentHistory).length} enrollment history entries`); for (const { data } of Object.values(res)) { const key = `${data.year}-${data.quarter}-${data.sectionCode}`;