clear the loop to clear my head
This commit is contained in:
parent
0858d14a03
commit
e61bbe0477
18
main.go
18
main.go
|
@ -71,23 +71,5 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
err = game.Update(&ts, p.UpdateId)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
continue
|
||||
}
|
||||
|
||||
// FIXME: this will output the same play multiple times
|
||||
for _, play := range game.Plays {
|
||||
result := play.Result
|
||||
if result.Event != "" {
|
||||
// TODO: figure out format
|
||||
// maybe a string format with play/result type?
|
||||
// FIXME: proper score on patch updates
|
||||
// FIXME: repeated output on feed updates
|
||||
fmt.Printf("%v (%v-%v)\n", result.Description, result.AwayScore, result.HomeScore)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue