ynnadkrap / balldontlie

NBA API
http://www.balldontlie.io
225 stars 19 forks source link

Season average stats wrong because missed games are not being accounted for #103

Closed asucaden closed 1 year ago

asucaden commented 1 year ago

Every player's "games_played" is set to the total amount of games their team has played.

For example Ja Morant has missed 5 games this season but /season_averages says he has played in all 29 (as of 12/19/2022).

Another example - Cam Johnson has missed a ton of games this season. He has played in only 8 games this season. /season_averages says he has played 30, which causes balldontlie to list his season averages at ~30% of their true values.

Ja Stats Cam Johnson Stats

erdemduman commented 1 year ago

I can also approve that. Total stats are directly divided by the number of games played this season. Players missing games is not taken into consideration.

ynnadkrap commented 1 year ago

this should be fixed now

asucaden commented 1 year ago

Works for me :)

erdemduman commented 1 year ago

It is working. Thank you!