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:
parent
de00f6ab1f
commit
f14766a1c0
@ -85,7 +85,7 @@ func (widget *Widget) nbascore() {
|
|||||||
result := map[string]interface{}{}
|
result := map[string]interface{}{}
|
||||||
json.Unmarshal(contents, &result)
|
json.Unmarshal(contents, &result)
|
||||||
allGame := "" // store result in allgame
|
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{}) {
|
for _, game := range result["games"].([]interface{}) {
|
||||||
vTeam, hTeam, vScore, hScore := "", "", "", ""
|
vTeam, hTeam, vScore, hScore := "", "", "", ""
|
||||||
quarter := 0.
|
quarter := 0.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user