diff --git a/src/main/java/mServer/crawler/sender/ard/ArdCrawler.java b/src/main/java/mServer/crawler/sender/ard/ArdCrawler.java index a2c2d968..adb877f4 100644 --- a/src/main/java/mServer/crawler/sender/ard/ArdCrawler.java +++ b/src/main/java/mServer/crawler/sender/ard/ArdCrawler.java @@ -68,12 +68,12 @@ private ConcurrentLinkedQueue createDayUrlsToCrawl() { final ConcurrentLinkedQueue dayUrlsToCrawl = new ConcurrentLinkedQueue<>(); final LocalDateTime now = LocalDateTime.now(); - for (int i = 0; i < MAX_DAYS_PAST; i++) { + for (int i = 0; i <= MAX_DAYS_PAST; i++) { addDayUrls(dayUrlsToCrawl, now.minusDays(i)); } if (CrawlerTool.loadLongMax()) { - for (int i = 0; i < MAX_DAYS_FUTURE; i++) { + for (int i = 0; i <= MAX_DAYS_FUTURE; i++) { addDayUrls(dayUrlsToCrawl, now.plusDays(i)); } }