done in mail body format
This commit is contained in:
parent
56c4b22a43
commit
d57a0a8162
|
@ -180,6 +180,10 @@ func (t *Task) FormatBody() string {
|
||||||
fields[FIELD_DUE] = t.Due.String()
|
fields[FIELD_DUE] = t.Due.String()
|
||||||
}
|
}
|
||||||
order = append(order, []string{FIELD_PROJECT, FIELD_VERSION, FIELD_ID}...)
|
order = append(order, []string{FIELD_PROJECT, FIELD_VERSION, FIELD_ID}...)
|
||||||
|
if t.Done {
|
||||||
|
fields[FIELD_DONE] = "true"
|
||||||
|
order = append(order, FIELD_DONE)
|
||||||
|
}
|
||||||
|
|
||||||
keyLen := 0
|
keyLen := 0
|
||||||
for _, f := range order {
|
for _, f := range order {
|
||||||
|
|
|
@ -357,6 +357,7 @@ id:
|
||||||
Version: version,
|
Version: version,
|
||||||
Action: action,
|
Action: action,
|
||||||
Project: project,
|
Project: project,
|
||||||
|
Done: true,
|
||||||
Due: task.NewDate(2021, 1, 30),
|
Due: task.NewDate(2021, 1, 30),
|
||||||
Message: &mstore.Message{
|
Message: &mstore.Message{
|
||||||
Body: "previous body",
|
Body: "previous body",
|
||||||
|
@ -368,6 +369,7 @@ due: 2021-01-30 (saturday)
|
||||||
project: project
|
project: project
|
||||||
version: 6
|
version: 6
|
||||||
id: an id
|
id: an id
|
||||||
|
done: true
|
||||||
|
|
||||||
Previous version:
|
Previous version:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue