Explorar o código

org-effectiveness.el (org-effectiveness-plot): fix change of year

* org-effectiveness.el (org-effectiveness-plot): fix change of year
David Arroyo Menendez %!s(int64=11) %!d(string=hai) anos
pai
achega
a61417f541
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/lisp/org-effectiveness.el

+ 1 - 1
contrib/lisp/org-effectiveness.el

@@ -156,7 +156,7 @@ many TODO pending"
   (let ((month startmonth)
 	(year startyear)
 	(str ""))
-    (while (and (>= endyear year) (>= endmonth month))
+    (while (or (> endyear year) (and (= endyear year) (>= endmonth month))) 
       (setq str (concat str (number-to-string year) "-" (org-effectiveness-month-to-string month) " " (org-effectiveness-in-date (concat (number-to-string year) "-" (org-effectiveness-month-to-string month)) 1) "\n"))
       (if (= month 12)
 	  (progn