Browse Source

Print Deviations after the table

master
Elis Hirwing 2 years ago
parent
commit
756919d533
Signed by: etu <elis@hirwing.se> GPG Key ID: D57EFA625C9A925F
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      statusscreen-sl.go

+ 5
- 0
statusscreen-sl.go View File

@@ -78,6 +78,11 @@ func (sl *SL) GetOutput() []string {

table.Render()

// Go through deviations and add it after the table
for _, v := range sl.lastResponse.ResponseData.StopPointDeviations {
b.WriteString(v.Deviation.Text + "\n")
}

return strings.Split(b.String(), "\n")
}



Loading…
Cancel
Save