Skip to content

Commit

Permalink
fix(migration): ensure tasks are put into the correct bucket when mig…
Browse files Browse the repository at this point in the history
…rating from todoist

Resolves #254
  • Loading branch information
kolaente committed Jun 4, 2024
1 parent dbf5e61 commit c17e456
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/modules/migration/todoist/todoist.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ func convertTodoistToVikunja(sync *sync, doneItems map[string]*doneItem) (fullVi
Created: section.DateAdded,
})
sections[section.ID] = fabricatedSectionID
fabricatedSectionID++
}

for _, label := range sync.Labels {
Expand Down Expand Up @@ -364,8 +365,6 @@ func convertTodoistToVikunja(sync *sync, doneItems map[string]*doneItem) (fullVi
}

lists[i.ProjectID].Tasks = append(lists[i.ProjectID].Tasks, task)

fabricatedSectionID++
}

// If the parenId of a task is not 0, create a task relation
Expand Down

0 comments on commit c17e456

Please sign in to comment.