leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

Player per-game stats on the game page #21

Closed mliu7 closed 12 years ago

mliu7 commented 12 years ago

We need to display the stats that we collect for games on the game page. I'm thinking it should be a box score style where each line is a player's stats for that game. It'll probably look a bit like a basketball box score.

mliu7 commented 12 years ago

Once the substitution buttons on the game tracking screen trigger event types of 80 and 81, the stats should be generated and displayed correctly.

cboulay commented 12 years ago

I'm a bit confused. Posting events of types 80 and 81 should cause the stats to be generated. OK. But how these events are posted and whether or not the stats are fetched are completely separate, or am I missing something? I just want to make sure you don't expect that pressing the substitution button will trigger a series of events that eventually leads to the game detail screen showing stats automatically. The game detail screen might not even exist when a player is substituted.

mliu7 commented 12 years ago

Sorry for not being more clear. The stats are fetched regardless, but on the box score screen, I assume that a player's stat line is tied to a team through a stat line's "team" attribute. This "team" attribute is only generated when a player is substituted in for a team.

And no, the game detail screen is not tied to the game tracking screen in any way.