Merged Notification Branch with Weather Branch

This commit is contained in:
schrom01 2022-11-29 12:25:54 +01:00
parent 8ecc14db91
commit 028bc0240d
2 changed files with 0 additions and 2 deletions

View File

@ -49,7 +49,6 @@ public class Notifier {
} }
public void sendNotifications() throws IOException, MessagingException { public void sendNotifications() throws IOException, MessagingException {
System.out.println("sending Notifications");
for (Task task : taskList.getTaskList(LocalDate.MIN, LocalDate.MAX)) { for (Task task : taskList.getTaskList(LocalDate.MIN, LocalDate.MAX)) {
if (task.getNextNotification() != null && task.getNextNotification().isBefore(LocalDate.now().minusDays(1))) { if (task.getNextNotification() != null && task.getNextNotification().isBefore(LocalDate.now().minusDays(1))) {
sendNotification(task); sendNotification(task);

View File

@ -28,7 +28,6 @@ public class WeatherGradenTaskPlanner {
public void refreshTasks() throws IOException, HardinessZoneNotSetException, PlantNotFoundException { public void refreshTasks() throws IOException, HardinessZoneNotSetException, PlantNotFoundException {
getSevereWeatherEvents(); getSevereWeatherEvents();
getRainAmount(); getRainAmount();
System.out.println("refreshing Tasks");
} }
private void getSevereWeatherEvents() throws IOException { private void getSevereWeatherEvents() throws IOException {