Todoist migration: don't panic if no reminder was found for task

See #897
This commit is contained in:
kolaente 2021-06-24 23:02:28 +02:00
parent 7408380560
commit 37718c3282
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -418,6 +418,7 @@ func convertTodoistToVikunja(sync *sync) (fullVikunjaHierachie []*models.Namespa
if _, exists := tasks[r.ItemID]; !exists { if _, exists := tasks[r.ItemID]; !exists {
log.Debugf("Could not find task %d for reminder %d while trying to resolve reminders", r.ItemID, r.ID) log.Debugf("Could not find task %d for reminder %d while trying to resolve reminders", r.ItemID, r.ID)
continue
} }
date, err := parseDate(r.Due.Date) date, err := parseDate(r.Due.Date)