Skip to content

Commit

Permalink
Merge pull request #139 from csunibo/fix-lezioni
Browse files Browse the repository at this point in the history
fix end on lecture not showing
  • Loading branch information
foxyseta authored Nov 24, 2023
2 parents dacbdd9 + 08182a1 commit d1dcb9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/uni.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func GetTimeTable(courseType, courseName string, year int, day time.Time) (strin
for _, event := range events {
b.WriteString(fmt.Sprintf(` 🕘 <b><a href="%s">%s</a></b>`, 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))
Expand Down

0 comments on commit d1dcb9b

Please sign in to comment.