Actualiser js/prediction.js

This commit is contained in:
2026-07-03 22:01:58 +02:00
parent f2016c70c8
commit 6b9ff9220e
+2 -2
View File
@@ -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');