Skip to content

Commit

Permalink
Refresh recrawl job profile threshold date like other default profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
luccioman committed Jan 15, 2018
1 parent b712a06 commit 9624516
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/net/yacy/search/Switchboard.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2533,6 +2533,10 @@ && getConfig(SwitchboardConstants.ADMIN_ACCOUNT_B64MD5, "").isEmpty() ) {
continue; continue;
} }
boolean insert = false; boolean insert = false;
if ( selentry.name().equals(CrawlSwitchboard.CRAWL_PROFILE_RECRAWL_JOB) ) {
selentry.put(CrawlProfile.CrawlAttribute.RECRAWL_IF_OLDER.key, Long.toString(CrawlProfile.getRecrawlDate(CrawlSwitchboard.CRAWL_PROFILE_RECRAWL_JOB_RECRAWL_CYCLE).getTime()));
insert = true;
}
if ( selentry.name().equals(CrawlSwitchboard.CRAWL_PROFILE_PROXY) ) { if ( selentry.name().equals(CrawlSwitchboard.CRAWL_PROFILE_PROXY) ) {
selentry.put(CrawlProfile.CrawlAttribute.RECRAWL_IF_OLDER.key, Long.toString(CrawlProfile.getRecrawlDate(CrawlSwitchboard.CRAWL_PROFILE_PROXY_RECRAWL_CYCLE).getTime())); selentry.put(CrawlProfile.CrawlAttribute.RECRAWL_IF_OLDER.key, Long.toString(CrawlProfile.getRecrawlDate(CrawlSwitchboard.CRAWL_PROFILE_PROXY_RECRAWL_CYCLE).getTime()));
insert = true; insert = true;
Expand Down

0 comments on commit 9624516

Please sign in to comment.