From 028bc0240d8d8596a4296b194cab1da3a5d7607c Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 29 Nov 2022 12:25:54 +0100 Subject: [PATCH] Merged Notification Branch with Weather Branch --- .../java/ch/zhaw/gartenverwaltung/backgroundtasks/Notifier.java | 1 - .../backgroundtasks/weather/WeatherGradenTaskPlanner.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/Notifier.java b/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/Notifier.java index da44149..a77ae06 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/Notifier.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/Notifier.java @@ -49,7 +49,6 @@ public class Notifier { } public void sendNotifications() throws IOException, MessagingException { - System.out.println("sending Notifications"); for (Task task : taskList.getTaskList(LocalDate.MIN, LocalDate.MAX)) { if (task.getNextNotification() != null && task.getNextNotification().isBefore(LocalDate.now().minusDays(1))) { sendNotification(task); diff --git a/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/weather/WeatherGradenTaskPlanner.java b/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/weather/WeatherGradenTaskPlanner.java index 16c327d..84ec59e 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/weather/WeatherGradenTaskPlanner.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/backgroundtasks/weather/WeatherGradenTaskPlanner.java @@ -28,7 +28,6 @@ public class WeatherGradenTaskPlanner { public void refreshTasks() throws IOException, HardinessZoneNotSetException, PlantNotFoundException { getSevereWeatherEvents(); getRainAmount(); - System.out.println("refreshing Tasks"); } private void getSevereWeatherEvents() throws IOException {