Fix range calculation for done tasks
This commit is contained in:
parent
c69af9bcde
commit
6d0acf8db7
4 changed files with 35 additions and 7 deletions
|
|
@ -326,8 +326,8 @@ impl FormulaSpec {
|
|||
.move_by(&self.start_delta);
|
||||
|
||||
if let Command::Task(_) = s.command.command {
|
||||
if let Some(last_done) = s.last_done() {
|
||||
range = range.with_from(last_done.succ())?;
|
||||
if let Some(last_done_root) = s.last_done_root() {
|
||||
range = range.with_from(last_done_root.succ())?;
|
||||
}
|
||||
// TODO Otherwise, go back one year or so if no FROM is specified
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue