dmaclean / dfs-python

Tools for DFS data collection and projection creation.
11 stars 2 forks source link

Using incorrect opponent in projections #15

Closed dmaclean closed 10 years ago

dmaclean commented 10 years ago

We're attaching an "opponent" key to the _playerinfo hash in _get_players_ingame(), which is actually the opponent of a player's previous game. I'm not sure why I'm doing this, but it's incorrect. We should be determining the opponent based on the game object.

dmaclean commented 10 years ago

Fixed. We're now doing a one-liner to determine whether the home or away team is the opponent.

Files modified: