Skip to content

Commit

Permalink
ard: fix search all program days
Browse files Browse the repository at this point in the history
  • Loading branch information
pidoubleyou committed Oct 10, 2024
1 parent 203a12e commit 6781bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mServer/crawler/sender/ard/ArdCrawler.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ private ConcurrentLinkedQueue<CrawlerUrlDTO> createDayUrlsToCrawl() {
final ConcurrentLinkedQueue<CrawlerUrlDTO> 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));
}
}
Expand Down

0 comments on commit 6781bdd

Please sign in to comment.