maj de la syntaxe
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user