From 6b9ff9220e0cf0a87b891903255f1ec438527e9a Mon Sep 17 00:00:00 2001 From: Cedric Date: Fri, 3 Jul 2026 22:01:58 +0200 Subject: [PATCH] Actualiser js/prediction.js --- js/prediction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/prediction.js b/js/prediction.js index 031b1e5..f1591d8 100644 --- a/js/prediction.js +++ b/js/prediction.js @@ -122,7 +122,7 @@ async function loadMatches() { // Chargement des joueurs depuis la BDD async function loadPlayers() { try { - const result = await apiCall('players.php'); + const result = await apiCall('player.php'); const container = document.getElementById('playersGrid'); container.innerHTML = ''; @@ -182,7 +182,7 @@ async function openPredictionModal(match) { try { // Récupérer l'analyse du matchup - const result = await apiCall(`players.php?action=matchup&player1=${match.player1.id}&player2=${match.player2.id}`); + const result = await apiCall(`player.php?action=matchup&player1=${match.player1.id}&player2=${match.player2.id}`); const modal = document.getElementById('predictionModal'); const details = document.getElementById('matchDetails');