Merge remote-tracking branch 'origin/feature_weather' into feature_weather
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ public class WeatherGradenTaskPlanner {
|
||||
// vom startdatum abhängig,
|
||||
private void adjustNextExecutionOfWateringTask(List<Task> cropTaskList){
|
||||
for(Task task : cropTaskList){
|
||||
if(task.getName().equals("watering task")){
|
||||
if(task.getName().equals("water plant")){
|
||||
task.setNextExecution(task.getNextExecution().plusDays(task.getInterval().orElse(1)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user