Merged Notification Branch with Weather Branch
This commit is contained in:
parent
8ecc14db91
commit
028bc0240d
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue