diff options
| author | Teddy Wing | 2017-03-12 17:35:05 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2017-03-12 17:35:05 +0100 | 
| commit | 2404a41cf283b9f390e8dac1f678066a85dc1e53 (patch) | |
| tree | d51c8b75c30ecb2cd1de108e46d17b712d1e1974 | |
| parent | 1ccce0fc6a9eb58cff99b00849a9f28610157504 (diff) | |
| download | timetasker-2404a41cf283b9f390e8dac1f678066a85dc1e53.tar.bz2 | |
TimeEntry: Add missing Module field
Forgot to add this field originally. Do the same as when we added the
`Time` field.
| -rw-r--r-- | timetask/time_entry.go | 3 | 
1 files changed, 3 insertions, 0 deletions
| 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 | 
