Skip to content

Commit

Permalink
comment out runScrapeJob (#59)
Browse files Browse the repository at this point in the history
* comment out runScrapeJob

* fix: send empty list instead (so rooms are deleted)
  • Loading branch information
SkellyBG authored Sep 29, 2024
1 parent 214aa69 commit 89abd4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libcal/src/libraryScraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ const runScrapeJob = async () => {
console.time("Scraping");
const allRooms: Room[] = [];
const allBookings: RoomBooking[] = [];
for (const library of LIBRARIES) {
const { rooms, bookings } = await scrapeLibrary(library);
allRooms.push(...rooms);
allBookings.push(...bookings);
}
// for (const library of LIBRARIES) {
// const { rooms, bookings } = await scrapeLibrary(library);
// allRooms.push(...rooms);
// allBookings.push(...bookings);
// }
console.timeEnd("Scraping");

// Send to Hasuragres
Expand Down

0 comments on commit 89abd4e

Please sign in to comment.