From 08182a1d82abc5b537ab6d5b6e69fa5d16c0d92f Mon Sep 17 00:00:00 2001 From: Samuele Musiani Date: Fri, 24 Nov 2023 12:23:17 +0100 Subject: [PATCH 1/2] 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)) From f2aa41fd99532af4dceede41fb203062248bca72 Mon Sep 17 00:00:00 2001 From: Stefano Volpe Date: Fri, 24 Nov 2023 13:40:30 +0100 Subject: [PATCH 2/2] chore: update config --- json/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/config b/json/config index 3af261d..7046fec 160000 --- a/json/config +++ b/json/config @@ -1 +1 @@ -Subproject commit 3af261d47e23780abde419870c9f938703fc81e1 +Subproject commit 7046fec82c6a3336bb25dac7b4994a68492203a3