Skip to content

Commit

Permalink
Testing feature optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierLora committed Apr 1, 2024
1 parent e241fc8 commit b5127d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let teamData;
let teamStatData;

async function getTeamStats() {
const apiUrl = 'https://sports.core.api.espn.com/v2/sports/basketball/leagues/nba/seasons/2024/teams?limit=30';
const apiUrl = 'https://sports.core.api.espn.com/v2/sports/basketball/leagues/nba/seasons/2024/types/2/groups/5/teams';

try {
const response = await fetch(apiUrl);
Expand Down Expand Up @@ -256,7 +256,7 @@ const teamsMachine = (obj) => {

const generateTeamPlayerRows = (playerList) => {
let playerRows = '';
for (let i = 0; i < 7; i++) {
for (let i = 0; i < playerList.length; i++) {
let obj = playerList[i];
playerRows += generatePlayerRow(obj);
}
Expand Down

0 comments on commit b5127d8

Please sign in to comment.