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:
parent
dbf5e61fc9
commit
c17e4564e7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user