Skip to content

Commit

Permalink
[Fix] HostPrefix 수정 (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbqmgldjfh authored Apr 2, 2024
1 parent 91a6ed5 commit 83eebdd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public BusinessAdministrationDept(

List<String> professorForumIds = List.of("10499");
this.staffScrapInfo = new StaffScrapInfo(professorForumIds);
this.noticeScrapInfo = new NoticeScrapInfo(BUIS_ADMIN.getKorName(), 437);
this.noticeScrapInfo = new NoticeScrapInfo("kbs", 437);
this.departmentName = BUIS_ADMIN;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ public void update() {

for (DeptInfo deptInfo : deptInfoList) {
CompletableFuture
.supplyAsync(() -> updateDepartmentAsync(deptInfo, DeptInfo::scrapLatestPageHtml), noticeUpdaterThreadTaskExecutor)
.thenApply(scrapResults -> compareLatestAndUpdateDB(scrapResults, deptInfo.getDeptName()))
.thenAccept(notificationService::sendNotificationList);
.supplyAsync(
() -> updateDepartmentAsync(deptInfo, DeptInfo::scrapLatestPageHtml),
noticeUpdaterThreadTaskExecutor
).thenApply(
scrapResults -> compareLatestAndUpdateDB(scrapResults, deptInfo.getDeptName())
).thenAccept(
notificationService::sendNotificationList
);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void update() {
noticeUpdaterThreadTaskExecutor
).thenApply(
scrapResults -> compareLatestAndUpdateDB(scrapResults, kuisNoticeInfo.getCategoryName())
).thenAccept(notificationService::sendNotificationList);
).thenAccept(
notificationService::sendNotificationList
);
}
}

Expand Down

0 comments on commit 83eebdd

Please sign in to comment.