maj de la syntaxe

This commit is contained in:
2026-03-30 16:33:11 +02:00
parent b73e91ff98
commit 20bdddd729
8 changed files with 347 additions and 351 deletions
+7 -7
View File
@@ -1,17 +1,17 @@
// Créer un objet formation à partir des données brutes de l'API
export function creerFormation(brut) {
var taux = 0
var latitude = null
var longitude = null
var taux = 0;
var latitude = null;
var longitude = null;
if (brut.voe_tot && brut.voe_tot > 0) {
taux = Math.round((brut.acc_tot / brut.voe_tot) * 100)
taux = Math.round((brut.acc_tot / brut.voe_tot) * 100);
}
if (brut.g_olocalisation_des_formations) {
latitude = brut.g_olocalisation_des_formations.lat
longitude = brut.g_olocalisation_des_formations.lon
latitude = brut.g_olocalisation_des_formations.lat;
longitude = brut.g_olocalisation_des_formations.lon;
}
return {
@@ -93,5 +93,5 @@ export function creerFormation(brut) {
classesPCTotal: brut.nb_cla_pc,
acceptesPCTotal: brut.acc_pc
}
};
}