diff --git a/scraper.js b/scraper.js index d3ea5ef..a93d2f0 100644 --- a/scraper.js +++ b/scraper.js @@ -152,7 +152,7 @@ function fetchAll(db, last) { session.end = session.start; } insertSession(db,session); - if (session.start > thresholdDate) { + if (moment(session.start, sessionDateFormat) > thresholdDate) { fetchSession(db,session.link); } });