Do not ntfy on already performed scheduled or missed schedules
This commit is contained in:
parent
4155af45f5
commit
526c57a362
@ -231,7 +231,8 @@ public class TaskScheduleService {
|
|||||||
Iterable<AdvancedTaskSchedule> allSchedules = advancedScheduleRepository.findAll();
|
Iterable<AdvancedTaskSchedule> allSchedules = advancedScheduleRepository.findAll();
|
||||||
List<AdvancedTaskSchedule> schedulesToday = new ArrayList<>();
|
List<AdvancedTaskSchedule> schedulesToday = new ArrayList<>();
|
||||||
for(AdvancedTaskSchedule advancedTaskSchedule : allSchedules) {
|
for(AdvancedTaskSchedule advancedTaskSchedule : allSchedules) {
|
||||||
if(advancedTaskSchedule.getScheduleStart().toLocalDate().equals(date)) {
|
if(advancedTaskSchedule.getScheduleStart().toLocalDate().equals(date) && advancedTaskSchedule.getStartTime() == null &&
|
||||||
|
advancedTaskSchedule.getScheduleStart().isBefore(LocalDateTime.now())) {
|
||||||
schedulesToday.add(advancedTaskSchedule);
|
schedulesToday.add(advancedTaskSchedule);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user