1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

WTF-415 Improve NBA Scores date format. Closes #415

This commit is contained in:
Chris Cummer 2019-04-25 20:59:15 -07:00
parent de00f6ab1f
commit f14766a1c0

View File

@ -85,7 +85,7 @@ func (widget *Widget) nbascore() {
result := map[string]interface{}{}
json.Unmarshal(contents, &result)
allGame := "" // store result in allgame
allGame += (" " + "[red]" + (cur.Format(wtf.FriendlyDateFormat) + "\n") + "[white]")
allGame += (" " + "[red]" + (cur.Format(wtf.FriendlyDateFormat) + "\n\n") + "[white]")
for _, game := range result["games"].([]interface{}) {
vTeam, hTeam, vScore, hScore := "", "", "", ""
quarter := 0.