Skip to content

Commit

Permalink
Correct count for number of reminders in list.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Feb 15, 2025
1 parent 899aa74 commit c99d712
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Examples/Reminders/RemindersLists.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ struct RemindersListsView: View {
try Record.fetchAll(
db,
RemindersList.annotated(
with: RemindersList.hasMany(Reminder.self).count
with: RemindersList
.hasMany(Reminder.self)
.filter(!Column("isCompleted"))
.count
)
)
}
Expand Down

0 comments on commit c99d712

Please sign in to comment.