1
0

fix(migration): ensure tasks are put into the correct bucket when migrating from todoist

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
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -300,6 +300,7 @@ func convertTodoistToVikunja(sync *sync, doneItems map[string]*doneItem) (fullVi
Created: section.DateAdded, Created: section.DateAdded,
}) })
sections[section.ID] = fabricatedSectionID sections[section.ID] = fabricatedSectionID
fabricatedSectionID++
} }
for _, label := range sync.Labels { 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) lists[i.ProjectID].Tasks = append(lists[i.ProjectID].Tasks, task)
fabricatedSectionID++
} }
// If the parenId of a task is not 0, create a task relation // If the parenId of a task is not 0, create a task relation