Browse Source

Filter out advertisement

master
Elis Hirwing 2 years ago
parent
commit
65640246f3
Signed by: etu <elis@hirwing.se> GPG Key ID: D57EFA625C9A925F
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/statusscreen/Weather.go

+ 3
- 1
src/statusscreen/Weather.go View File

@@ -27,7 +27,9 @@ func (weather *Weather) GetOutput() []string {
}
}

return strings.Split(weather.lastResponse, "\n")
parts := strings.Split(weather.lastResponse, "\n")

return parts[:len(parts)-5]
}

func (weather *Weather) getWeather() (string, error) {


Loading…
Cancel
Save