From 0057ac5836afcbbd62fcba85d3781592d14246f6 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 10 Mar 2024 18:41:37 +0100 Subject: [PATCH] fix(migration): only download uploaded attachments --- pkg/modules/migration/trello/trello.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/modules/migration/trello/trello.go b/pkg/modules/migration/trello/trello.go index f1ca9b0ea..380ec539c 100644 --- a/pkg/modules/migration/trello/trello.go +++ b/pkg/modules/migration/trello/trello.go @@ -305,7 +305,7 @@ func convertTrelloDataToVikunja(trelloData []*trello.Board, token string) (fullV log.Debugf("[Trello Migration] Downloading %d card attachments from card %s", len(card.Attachments), card.ID) } for _, attachment := range card.Attachments { - if attachment.MimeType == "" { // Attachments can also be not downloadable - the mime type is empty in that case. + if !attachment.IsUpload { // There are other types of attachments which are not files. We can only handle files. log.Debugf("[Trello Migration] Attachment %s does not have a mime type, not downloading", attachment.ID) continue }