Fix exporting tasks

This commit is contained in:
kolaente 2021-08-29 22:38:34 +02:00
parent fcb64d5d8b
commit ad46ca4781
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 6 deletions

View File

@ -141,7 +141,9 @@ func exportListsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (err err
for _, l := range n.Lists {
nn.Lists = append(nn.Lists, &ListWithTasksAndBuckets{
List: *l,
List: *l,
BackgroundFileID: l.BackgroundFileID,
Tasks: []*Task{},
})
}
@ -171,11 +173,7 @@ func exportListsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (err err
listIDs := []int64{}
for _, n := range namespaces {
for _, l := range n.Lists {
listMap[l.ID] = &ListWithTasksAndBuckets{
List: l.List,
BackgroundFileID: l.BackgroundFileID,
Tasks: []*Task{},
}
listMap[l.ID] = l
listIDs = append(listIDs, l.ID)
}
}