mirror of
https://github.com/Xevion/banner.git
synced 2025-12-08 10:06:28 -06:00
Fix ICS command formatting
This commit is contained in:
8
types.go
8
types.go
@@ -117,11 +117,13 @@ func (m *MeetingTimeResponse) TimeString() string {
|
||||
|
||||
// PlaceString returns a formatted string best representing the place of the meeting time
|
||||
func (m *MeetingTimeResponse) PlaceString() string {
|
||||
if m.MeetingTime.Room == "" {
|
||||
return "???"
|
||||
mt := m.MeetingTime
|
||||
|
||||
if mt.Room == "" {
|
||||
return "Online"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s %s", m.MeetingTime.Building, m.MeetingTime.Room)
|
||||
return fmt.Sprintf("%s | %s | %s %s", mt.CampusDescription, mt.BuildingDescription, mt.Building, mt.Room)
|
||||
}
|
||||
|
||||
func (m *MeetingTimeResponse) Days() map[time.Weekday]bool {
|
||||
|
||||
Reference in New Issue
Block a user