From 08182a1d82abc5b537ab6d5b6e69fa5d16c0d92f Mon Sep 17 00:00:00 2001 From: Samuele Musiani Date: Fri, 24 Nov 2023 12:23:17 +0100 Subject: [PATCH] fix end on lecture not showing --- commands/uni.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/uni.go b/commands/uni.go index 75aeb55..d860b67 100644 --- a/commands/uni.go +++ b/commands/uni.go @@ -68,7 +68,8 @@ func GetTimeTable(courseType, courseName string, year int, day time.Time) (strin for _, event := range events { b.WriteString(fmt.Sprintf(` 🕘 %s`, event.Teams, event.Title)) b.WriteString("\n") - b.WriteString(event.Start.Format("15:04")) + b.WriteString(event.Start.Format("15:04") + " - " + + event.End.Format("15:04")) b.WriteString("\n") if len(event.Classrooms) > 0 { b.WriteString(fmt.Sprintf(" 🏢 %s - %s\n", event.Classrooms[0].BuildingDesc, event.Classrooms[0].FloorDesc))