diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-11-28 13:43:14 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-11-28 13:43:14 +0100 |
commit | 7723fefef12ea480990b54036da543ec8e59ec58 (patch) | |
tree | 01877dfefd2cb88f6d22905eb7f3635d2ac8074f /zeitgeist.go | |
parent | 567af2806c2b2ac22bfe9d4c8924c854d475af10 (diff) |
fix comment handling
Diffstat (limited to 'zeitgeist.go')
-rw-r--r-- | zeitgeist.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zeitgeist.go b/zeitgeist.go index a0e30d3..64bdc0d 100644 --- a/zeitgeist.go +++ b/zeitgeist.go @@ -454,13 +454,18 @@ func (p *Project) readPlans(dir string) error { } + comment := "" + if len(parts) > 3 { + comment = parts[3] + } + if a > 0 { entry := Entry{ User: parts[1], WP: wps[0], Task: wps[1], Amount: a, - Comment: parts[3]} + Comment: comment} entries := p.Planned[Date(d)] entries = append(entries, entry) |