Skip to content

Commit

Permalink
Tasks set to recur from original due date are now recurring from
Browse files Browse the repository at this point in the history
original due date instead of date date of completion.
  • Loading branch information
topas-rec committed Apr 14, 2018
1 parent b0e89a9 commit 0946528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/todo.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(A) Make peace between Cylons and humans +PeaceProject
(A) Review NCMR Log +Admin @work t:2018-03-28 rec:+1b due:2018-03-28
(A) Review NCMR Log +Admin @work t:2017-12-22 rec:+1b due:2017-12-22
(B) Report to <i>Admiral Adama</i> about FTL @CIC +GalacticaRepairs due:2013-05-24
(C) 2016-12-08 Feed Schrodinger's Cat rec:+1d due:2014-02-23
(C) Upgrade jump drives with Cylon technology +GalacticaRepairs
Expand All @@ -10,5 +10,4 @@ Download code from <br/> https://github.com/QTodoTxt/QTodoTxt/archive/master.zip
Find the question due:2017-06-10 rec:6d t:2017-06-09
Think about <u>future</u> t:2099-12-31
h:1 @CIC +GalacticaRepairs @work
x 2018-03-27 (A) Review NCMR Log +Admin @work t:2017-12-22 rec:+1b due:2017-12-22
x 2016-02-21 (B) Seal ship's cracks with biomatter +GalacticaRepairs
2 changes: 1 addition & 1 deletion qtodotxt2/lib/tasklib.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def _incrWorkDays(startDate, daysToIncrement):

def _recurWorkDays(task):
if task.recursion.mode == RecursiveMode.originalDueDate:
next_due_date = _incrWorkDays(date.today(), int(task.recursion.increment))
next_due_date = _incrWorkDays(task.due, int(task.recursion.increment))
else:
next_due_date = _incrWorkDays(date.today(), int(task.recursion.increment))
new = Task(task.text)
Expand Down

0 comments on commit 0946528

Please sign in to comment.