Merged Notification Branch with Weather Branch
This commit is contained in:
@@ -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);
|
||||
|
||||
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user