Skip to content

Commit

Permalink
[Refactor] 먼지 크롤링 주기 변경, 식단 메뉴 파싱 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed May 21, 2024
1 parent 304a0d9 commit 189c515
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void crawlingCafeteria() throws InterruptedException{
if(!foods.isEmpty()) {
redisService.storeMeal("학생식당", 1, foods.get(1).getText());
redisService.storeMeal("학생식당", 2, foods.get(2).getText());
redisService.storeMeal("학생식당", 3, foods.get(3).getText());
menu = foods.get(3).getText();
menu = menu.replace("\"","");
redisService.storeMeal("학생식당", 3, menu);
}
else{
weekend("학생식당");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ public void getSky(){
@Scheduled(cron = "0 15 * * * *")
public void getTem(){
getTemperature();
}
@Scheduled(cron = "0 30 * * * *")
public void getCrawlDust(){
getDust();
}





@PostConstruct
public void initWeather(){
getDust();
Expand Down

0 comments on commit 189c515

Please sign in to comment.