File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lua/orgmode/notifications Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ function Notifications:get_tasks(time)
101101 local tasks = {}
102102 for _, orgfile in ipairs(self.files:all()) do
103103 for _, headline in ipairs(orgfile:get_opened_unfinished_headlines()) do
104- for _, date in ipairs(headline:get_deadline_and_scheduled_dates ()) do
104+ for _, date in ipairs(headline:get_valid_dates_for_agenda ()) do
105105 local reminders = self:_check_reminders(date, time)
106106 for _, reminder in ipairs(reminders) do
107107 table.insert(tasks, {
@@ -140,6 +140,9 @@ function Notifications:_check_reminders(date, time)
140140 if date:is_scheduled() and not notifications.scheduled_reminder then
141141 return result
142142 end
143+ if date.is_date_range_end then
144+ return result
145+ end
143146
144147 if notifications.repeater_reminder_time and date:get_repeater() then
145148 local repeater_time = date:apply_repeater_until(time)
You can’t perform that action at this time.
0 commit comments