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 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user