root does not marshal TSs on todos, always on schedules, dones. Test.

This commit is contained in:
Bel LaPointe
2022-01-02 20:44:04 -05:00
parent fdb24fcc60
commit 6178e6ff93
2 changed files with 40 additions and 0 deletions

View File

@@ -36,3 +36,17 @@ func (root *Root) MergeIn(root2 Root) {
}
}
}
func (root Root) MarshalYAML() (interface{}, error) {
for i := range root.Todo {
root.Todo[i].writeTS = false
}
for i := range root.Scheduled {
root.Scheduled[i].writeTS = true
}
for i := range root.Done {
root.Done[i].writeTS = true
}
type Alt Root
return (Alt)(root), nil
}