Actualiser js/prediction.js
This commit is contained in:
+2
-2
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user