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)
101
101
local tasks = {}
102
102
for _ , orgfile in ipairs (self .files :all ()) do
103
103
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
105
105
local reminders = self :_check_reminders (date , time )
106
106
for _ , reminder in ipairs (reminders ) do
107
107
table.insert (tasks , {
@@ -140,6 +140,9 @@ function Notifications:_check_reminders(date, time)
140
140
if date :is_scheduled () and not notifications .scheduled_reminder then
141
141
return result
142
142
end
143
+ if date .is_date_range_end then
144
+ return result
145
+ end
143
146
144
147
if notifications .repeater_reminder_time and date :get_repeater () then
145
148
local repeater_time = date :apply_repeater_until (time )
You can’t perform that action at this time.
0 commit comments