Include items in workload overview planned before given start date

This commit is contained in:
Daniel Borchmann 2023-05-24 18:59:39 +02:00
parent 242d5cbcba
commit a4712cf155
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -725,7 +725,12 @@ PARAMS is a property list of the following parameters:
;; XXX: this might be slow, try to reduce the calls to
;; `db/org-planned-tasks-in-range'.
(dolist (interval-end-date date-range)
(let ((total-time (car (db/org-planned-tasks-in-range (format-time-string timestamp-format start-date)
(let ((total-time (car (db/org-planned-tasks-in-range
;; Set start date to nil to also include tasks
;; scheduled or deadlined before `start-date', as
;; those are also still open and need to be done
;; somewhen.
nil
(format-time-string timestamp-format interval-end-date)
org-ql-match))))
(insert (format "| [%s] | %s |\n"