From c17e4564e750d5a5ad0a2cced4ed6ba50820d226 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 4 Jun 2024 08:33:11 +0200 Subject: [PATCH] fix(migration): ensure tasks are put into the correct bucket when migrating from todoist Resolves https://github.com/go-vikunja/vikunja/issues/254 --- pkg/modules/migration/todoist/todoist.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/modules/migration/todoist/todoist.go b/pkg/modules/migration/todoist/todoist.go index 031b4daba..ff1b96351 100644 --- a/pkg/modules/migration/todoist/todoist.go +++ b/pkg/modules/migration/todoist/todoist.go @@ -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