#23 small adjustments

This commit is contained in:
Gian-Andrea Hutter 2022-11-22 14:48:09 +01:00
parent 670938ef85
commit d2b8fe4ba2
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public class WeatherGradenTaskPlanner {
Task preHailTask = new Task("Hail",
"During a summer Thunderstorm it could hail heavily. THe Hail could damage the crops. To prevent damage cover the plants with a strong tarpaulin",
dateSevereWeather);
dateSevereWeather.minusDays(1L));
preHailTask.withId(Long.MAX_VALUE);
taskList.saveTask(preHailTask);
@ -41,7 +41,7 @@ public class WeatherGradenTaskPlanner {
public void createPreFrost() throws IOException {
Task preFrostTask = new Task("Frost",
"The temperatur falls below zero degrees, cover especially the root with wool",
dateSevereWeather);
dateSevereWeather.minusDays(1L));
preFrostTask.withId(Long.MAX_VALUE);
taskList.saveTask(preFrostTask);
}
@ -49,7 +49,7 @@ public class WeatherGradenTaskPlanner {
public void createPreSnow() throws IOException {
Task preSnowTask = new Task("Snow",
"The weather brings little snowfall. Cover your crops",
dateSevereWeather);
dateSevereWeather.minusDays(1L));
preSnowTask.withId(Long.MAX_VALUE);
taskList.saveTask(preSnowTask);
}