Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Away batting? #57

Closed
JonathanSFalk opened this issue Jan 28, 2018 · 7 comments
Closed

Away batting? #57

JonathanSFalk opened this issue Jan 28, 2018 · 7 comments
Labels

Comments

@JonathanSFalk
Copy link

Hi. I just came across this fantastic piece of work today. Thanks so much. I'm fairly new to Python, but I can't figure out what I'm doing wrong. This piece of code:

stats = mlbgame.player_stats(game.game_id)
   for player in stats.home_batting:
    ... stuff here on player

works fine
But this code

stats = mlbgame.player_stats(game.game_id)
    for player in stats.away_batting:
     ... stuff here on player

Never executes because away_batting is always empty. I presume I'm doing something wrong, but if I'm not....

@panzarino panzarino added the bug label Jan 28, 2018
@panzarino
Copy link
Owner

I think it should work, it may not since I recently changed the way that the algorithm works for that section. Are the away players showing up in the home section or are they just not there at all? Is this an issue isolated to a specific game or happening for all of them?

@JonathanSFalk
Copy link
Author

JonathanSFalk commented Jan 28, 2018

They are not showing up at all, and it is happening for all games, or at least I think it is. All I was doing was writing code to get all home runs hit in June 2017, and I was surprised to see all I got was the home runs hit by home players. (To be honest, I learned a lot just by investigating why it wasn't working, but I couldn't figure out enough to make it work... )

@panzarino
Copy link
Owner

@JonathanSFalk I'll investigate more today and try to fix it, if I can't then I'll revert to the old version.

panzarino added a commit that referenced this issue Jan 30, 2018
Add rawboxscore.xml to stats retrieval, fixes #30 and #57
@ajbowler
Copy link
Contributor

@JonathanSFalk can you pull latest master and give it another go?

@panzarino
Copy link
Owner

@JonathanSFalk @ajbowler Adding on to that, a release with the fix should be coming by this weekend at the latest, theres a few more things I want to fix before releasing.

@JonathanSFalk
Copy link
Author

JonathanSFalk commented Jan 30, 2018 via email

@JonathanSFalk
Copy link
Author

JonathanSFalk commented Jan 31, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants