Skip to content

Commit

Permalink
fix: true shooting calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSCar committed Jan 27, 2025
1 parent 3554aae commit abe7fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/stats/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const getTeamSeasonStats = async (
Math.round(
(Number(team.points) /
(2 * (Number(team.fga) + 0.44 * Number(team.fta)))) *
10,
1000,
) / 10,
rating:
Math.round((1000 * Number(team.points)) / Number(team.possessions)) /
Expand Down Expand Up @@ -274,7 +274,7 @@ export const getTeamSeasonStats = async (
Math.round(
(Number(team.pointsOpp) /
(2 * (Number(team.fgaOpp) + 0.44 * Number(team.ftaOpp)))) *
10,
1000,
) / 10,
rating:
Math.round(
Expand Down

0 comments on commit abe7fbe

Please sign in to comment.