The win/loss values from the NHL data feed reset in the playoffs, but don't reflect the current series. Instead, they reflect the current win/loss total since the beginning of the playoffs. This commit checks for a key in the API return data indicating that the game is a playoff game, and if the game is a playoff game the team's wins will be set to the remainder of the total wins divided by 4 (a team with 6 overall wins will be assumed to have 2 wins in the current playoff series). The team's losses during a playoff series will be set to the amount of wins for the opposing team. |
||
---|---|---|
.. | ||
__init__.py | ||
epl.py | ||
mlb.py | ||
nba.py | ||
nhl.py |