fix(migration): ensure tasks are put into the correct bucket when migrating from todoist
Some checks failed
continuous-integration/drone/push Build is failing

Resolves https://github.com/go-vikunja/vikunja/issues/254
This commit is contained in:
kolaente 2024-06-04 08:33:11 +02:00
parent dbf5e61fc9
commit c17e4564e7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -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 {
@ -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