clear the loop to clear my head

This commit is contained in:
filifa 2024-07-03 20:56:08 -05:00
parent 0858d14a03
commit e61bbe0477
1 changed files with 0 additions and 18 deletions

18
main.go
View File

@ -71,23 +71,5 @@ func main() {
if err != nil { if err != nil {
log.Fatal(err) 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)
}
}
} }
} }