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

Getting full team box score per game #93

Closed
ianclim opened this issue Apr 27, 2023 · 2 comments
Closed

Getting full team box score per game #93

ianclim opened this issue Apr 27, 2023 · 2 comments

Comments

@ianclim
Copy link

ianclim commented Apr 27, 2023

Hi, was just wondering if this script is supposed to also log playoff data from current and past seasons? It seems like all of the data is cut off at regular season only. Is there a way to include playoff data?

Update: found the regular season flags, resolved!

New question: how can I pull the full team box score (total points, 3p%, etc) for each game?

@ianclim ianclim changed the title Not fetching playoff data? Getting full team box score per game Apr 27, 2023
@mpope9
Copy link
Owner

mpope9 commented May 2, 2023

I actually forgot there was an option to get non-regular season games. Glad you found it.

As for team related stats, I don't think we ever hooked into those endpoints. I feel like they can be calculated on the fly in a materialized view, but could consider this a feature request.

@mpope9
Copy link
Owner

mpope9 commented Jan 9, 2025

I'm closing this, it is easily calculatable by doing something like:

SELECT pgl.game_id, SUM(pgl.fg3) FROM player_game_log pgl 
JOIN ON game WHERE game.game_id = pgl.game_id
JOIN ON team WHERE team.team_id = pgl.team_id
WHERE pgl.nickname = "Hawks"
GROUP BY pgl.game_id

@mpope9 mpope9 closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants