Skip to content

Commit

Permalink
Fix GAME_URL bug
Browse files Browse the repository at this point in the history
This commit fixes issue !50, where the `GAME_URL` contained an extra
`/`, causing an invalid url and triggering the error: `ValueError: Could
not find a game with that id.`.
  • Loading branch information
trevor-viljoen committed Jan 17, 2018
1 parent 27f3514 commit 35be882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlbgame/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Templates For URLS
BASE_URL = ('http://gd2.mlb.com/components/game/mlb/'
'year_{0}/month_{1:02d}/day_{2:02d}/')
GAME_URL = BASE_URL + '/gid_{3}/{4}'
GAME_URL = BASE_URL + 'gid_{3}/{4}'
PROPERTY_URL = 'http://mlb.mlb.com/properties/mlb_properties.xml'
ROSTER_URL = 'http://mlb.mlb.com/lookup/json/named.roster_40.bam?team_id={0}'
INJURY_URL = 'http://mlb.mlb.com/fantasylookup/json/named.wsfb_news_injury.bam'
Expand Down

0 comments on commit 35be882

Please sign in to comment.