Really? We are changing the sprint numbers?

This commit is contained in:
Howard Abrams 2022-10-25 22:07:48 -07:00
parent 61cd127fe3
commit 4a2bbbe908

View file

@ -226,12 +226,11 @@ And it appears that my PM for this year, is a week number behind.
#+begin_src emacs-lisp
(defun sprint-number (&optional date)
"Return the current sprint number, with some assumptions that
each sprint is two weeks long, starting on Thursday."
(interactive)
each sprint is two weeks long, starting on Tuesday."
(let ((num (sprint-week-num date)))
(if (cl-oddp num)
(- num 2)
(- num 1))))
(- num)
num)))
#+end_src
And some tests to verify that: