Really? We are changing the sprint numbers?
This commit is contained in:
parent
61cd127fe3
commit
4a2bbbe908
1 changed files with 3 additions and 4 deletions
|
@ -226,12 +226,11 @@ And it appears that my PM for this year, is a week number behind.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun sprint-number (&optional date)
|
(defun sprint-number (&optional date)
|
||||||
"Return the current sprint number, with some assumptions that
|
"Return the current sprint number, with some assumptions that
|
||||||
each sprint is two weeks long, starting on Thursday."
|
each sprint is two weeks long, starting on Tuesday."
|
||||||
(interactive)
|
|
||||||
(let ((num (sprint-week-num date)))
|
(let ((num (sprint-week-num date)))
|
||||||
(if (cl-oddp num)
|
(if (cl-oddp num)
|
||||||
(- num 2)
|
(- num)
|
||||||
(- num 1))))
|
num)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
And some tests to verify that:
|
And some tests to verify that:
|
||||||
|
|
Loading…
Reference in a new issue