Fix exporting tasks
This commit is contained in:
parent
fcb64d5d8b
commit
ad46ca4781
|
@ -141,7 +141,9 @@ func exportListsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (err err
|
||||||
|
|
||||||
for _, l := range n.Lists {
|
for _, l := range n.Lists {
|
||||||
nn.Lists = append(nn.Lists, &ListWithTasksAndBuckets{
|
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{}
|
listIDs := []int64{}
|
||||||
for _, n := range namespaces {
|
for _, n := range namespaces {
|
||||||
for _, l := range n.Lists {
|
for _, l := range n.Lists {
|
||||||
listMap[l.ID] = &ListWithTasksAndBuckets{
|
listMap[l.ID] = l
|
||||||
List: l.List,
|
|
||||||
BackgroundFileID: l.BackgroundFileID,
|
|
||||||
Tasks: []*Task{},
|
|
||||||
}
|
|
||||||
listIDs = append(listIDs, l.ID)
|
listIDs = append(listIDs, l.ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user