Prechádzať zdrojové kódy

ox-taskjuggler: Use effort property as-is

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Use
effort property as-is instead of applying `org-duration-to-minutes'.

Reported-by: Benjamin Kästner <benjamin.kaestner@googlemail.com>
Nicolas Goaziou 5 rokov pred
rodič
commit
5712412b5d
1 zmenil súbory, kde vykonal 1 pridanie a 5 odobranie
  1. 1 5
      contrib/lisp/ox-taskjuggler.el

+ 1 - 5
contrib/lisp/ox-taskjuggler.el

@@ -859,11 +859,7 @@ a unique id will be associated to it."
                     "allocations")
                   allocate))
      (and complete (format "  complete %s\n" complete))
-     (and effort
-          (format "  effort %s\n"
-                  (let* ((minutes (org-duration-to-minutes effort))
-                         (hours (/ minutes 60.0)))
-                    (format "%.1fh" hours))))
+     (and effort (format "  effort %s\n" effort))
      (and priority (format "  priority %s\n" priority))
      (and milestone "  milestone\n")
      ;; Add other valid attributes.