1
0

fix(migration): todoist pagination now avoids too many loops

This commit is contained in:
kolaente
2023-01-24 22:27:49 +01:00
parent 0cd9cd324e
commit 682123a9c9
2 changed files with 6 additions and 1 deletions

View File

@ -226,6 +226,9 @@ func insertFromStructure(s *xorm.Session, str []*models.NamespaceWithListsAndTas
// If not, create one and save it for later
var lb *models.Label
var exists bool
if label == nil {
continue
}
lb, exists = labels[label.Title+label.HexColor]
if !exists {
err = label.Create(s, user)