From 6781bddf7c598937833b46f3b30c4b6b9f9917e5 Mon Sep 17 00:00:00 2001 From: pidoubleyou Date: Thu, 10 Oct 2024 17:55:07 +0200 Subject: [PATCH] ard: fix search all program days --- src/main/java/mServer/crawler/sender/ard/ArdCrawler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }