Skip to content

Commit

Permalink
updated timetable look
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaya-Sem committed Sep 29, 2024
1 parent 25f6465 commit 0bfed11
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ func handleTimetable(stationName string) {
}

columns := []teaTable.Column{
{Title: "", Width: 5},
{Title: "", Width: 5},
{Title: "Destination", Width: 20},
{Title: "Track", Width: 10},
{Title: "", Width: 8},
{Title: "Track", Width: 5},
{Title: "Destination", Width: 28},
}

rows := make([]teaTable.Row, len(departures))
Expand All @@ -115,11 +114,11 @@ func handleTimetable(stationName string) {
} else {
delay = cmd.FormatDelay(departure.Delay)
}

rows[i] = teaTable.Row{
cmd.UnixToHHMM(departure.Time),
delay,
cmd.UnixToHHMM(departure.Time) + " " + delay,
table.LeftPad(departure.Platform, 5),
departure.Station,
departure.Platform,
}
}

Expand Down

0 comments on commit 0bfed11

Please sign in to comment.