From 94b438abc3fc54305089f658d972c6239e039756 Mon Sep 17 00:00:00 2001 From: Pieter Claerhout Date: Mon, 8 Mar 2021 16:06:56 +0100 Subject: [PATCH 1/2] Fixes #55 --- file_types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/file_types.go b/file_types.go index afd23a0..079a786 100644 --- a/file_types.go +++ b/file_types.go @@ -62,6 +62,7 @@ type CourseFile struct { Course *CourseMsg Laps []*LapMsg CoursePoints []*CoursePointMsg + Events []*EventMsg Records []*RecordMsg } From fc0ebcca4cbc8148efdaa4abc11d6e2ddaf82bca Mon Sep 17 00:00:00 2001 From: Pieter Claerhout Date: Tue, 9 Mar 2021 07:41:50 +0100 Subject: [PATCH 2/2] Added the EventMsg case for CourseFile #55 --- file_types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file_types.go b/file_types.go index 079a786..f6cced7 100644 --- a/file_types.go +++ b/file_types.go @@ -252,6 +252,9 @@ func (c *CourseFile) add(msg reflect.Value) { case RecordMsg: tmp.expandComponents() c.Records = append(c.Records, &tmp) + case EventMsg: + tmp.expandComponents() + c.Events = append(c.Events, &tmp) default: } }