From 2404a41cf283b9f390e8dac1f678066a85dc1e53 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 12 Mar 2017 17:35:05 +0100 Subject: TimeEntry: Add missing Module field Forgot to add this field originally. Do the same as when we added the `Time` field. --- timetask/time_entry.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'timetask') diff --git a/timetask/time_entry.go b/timetask/time_entry.go index 1cb7bc8..a4d37ef 100644 --- a/timetask/time_entry.go +++ b/timetask/time_entry.go @@ -5,6 +5,7 @@ import "time" type TimeEntry struct { Client string Project string + Module string Task string WorkType string `yaml:"work_type"` Date time.Time @@ -18,6 +19,7 @@ func (te *TimeEntry) UnmarshalYAML(unmarshal func(interface{}) error) error { var auxiliary struct { Client string Project string + Module string Task string WorkType string `yaml:"work_type"` Date string @@ -38,6 +40,7 @@ func (te *TimeEntry) UnmarshalYAML(unmarshal func(interface{}) error) error { te.Client = auxiliary.Client te.Project = auxiliary.Project + te.Module = auxiliary.Module te.Task = auxiliary.Task te.WorkType = auxiliary.WorkType te.Date = date -- cgit v1.2.3