#23 comments added
This commit is contained in:
parent
233ce6b088
commit
cae6f950ad
|
@ -73,6 +73,7 @@ public class WeatherGradenTaskPlanner {
|
|||
for (Crop crop : cropList.getCrops()) {
|
||||
Plant plant = plantList.getPlantById(HardinessZone.ZONE_8A,crop.getPlantId()).orElseThrow(PlantNotFoundException::new);
|
||||
|
||||
// nur für aktuelle growthphase
|
||||
for (GrowthPhase growthphase : plant.lifecycle()) {
|
||||
|
||||
if(growthphase.wateringCycle().litersPerSqM() < rainAmount){
|
||||
|
@ -82,7 +83,7 @@ public class WeatherGradenTaskPlanner {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
// vom startdatum abhängig,
|
||||
private void adjustNextExecutionOfWateringTask(List<Task> cropTaskList){
|
||||
for(Task task : cropTaskList){
|
||||
if(task.getName().equals("watering task")){
|
||||
|
|
Loading…
Reference in New Issue