Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Feb 17, 2023
1 parent aa6ec0d commit 79e5664
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/lib/util/schedule_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,15 @@ Future<void> scheduleNotifications(BuildContext context) async {
for (int index = 0; index <= 3; index++) {
final date = DateTime.now().add(Duration(days: index));
for (final observation in subject.study.observations) {
sendNotificationList
.add(SendNotification(observation, date, notificationDetails));
sendNotificationList.add(SendNotification(observation, date, notificationDetails));
}
for (final intervention in subject.selectedInterventions) {
if (intervention.id == null ||
intervention.id != subject.getInterventionForDate(date)?.id) {
if (intervention.id == null || intervention.id != subject.getInterventionForDate(date)?.id) {
continue;
}
for (final task in intervention.tasks) {
if (task.title != null) {
sendNotificationList
.add(SendNotification(task, date, notificationDetails));
sendNotificationList.add(SendNotification(task, date, notificationDetails));
}
}
}
Expand Down

0 comments on commit 79e5664

Please sign in to comment.