1
0

fix: revert renaming Attachments to Embeds everywhere

This commit is contained in:
kolaente
2022-06-19 16:22:45 +02:00
committed by Gitea
parent f4f8450d16
commit c62e26b6fe
4 changed files with 5 additions and 5 deletions

View File

@ -242,12 +242,12 @@ func convertTrelloDataToVikunja(trelloData []*trello.Board, token string) (fullV
log.Debugf("[Trello Migration] Converted label %s from card %s", label.ID, card.ID)
}
// Embeds
// Attachments
if len(card.Attachments) > 0 {
log.Debugf("[Trello Migration] Downloading %d card attachments from card %s", len(card.Attachments), card.ID)
}
for _, attachment := range card.Attachments {
if attachment.MimeType == "" { // Embeds can also be not downloadable - the mime type is empty in that case.
if attachment.MimeType == "" { // Attachments can also be not downloadable - the mime type is empty in that case.
log.Debugf("[Trello Migration] Attachment %s does not have a mime type, not downloading", attachment.ID)
continue
}

View File

@ -181,7 +181,7 @@ func convertListForFolder(listID int, list *list, content *wunderlistContents) (
}
}
// Embeds
// Attachments
for _, f := range content.files {
if f.TaskID == t.ID {
// Download the attachment and put it in the file