Skip to content

Commit

Permalink
🎨 Add more statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
HubM committed Sep 17, 2024
1 parent fd76b9b commit 1458756
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,19 @@ const formatProjetId = (id: string) =>
}

console.log('\n\nStatistiques :');
console.log(`Nombre de projets inconnu : ${statistics.projetInconnu.count}`);
console.log(`Nombre de projets concernés : ${dirrents.length}`);
console.log(
`Nombre d'attestation ajoutées à des gfs existante : ${statistics.attestationAjoutée}`,
`Nombre de projets inconnu dans potentiel : ${statistics.projetInconnu.count} / ${dirrents.length}`,
);
console.log(
`Nombre d'attestation ajoutées à des gfs existante : ${statistics.attestationAjoutée} / ${dirrents.length}`,
);
console.log(
`Nombre de gf crées avec attestation : ${statistics.gfCréeEtAttestationAjoutée} / ${dirrents.length}`,
);
console.log(
`Nombre d'attestation déjà existante : ${statistics.attestationExistante} / ${dirrents.length}`,
);
console.log(`Nombre de gf crées avec attestation : ${statistics.gfCréeEtAttestationAjoutée}`);
console.log(`Nombre d'attestation déjà existante : ${statistics.attestationExistante}`);

if (statistics.projetInconnu.ids.length) {
await writeFile('projets-non-trouvés.txt', statistics.projetInconnu.ids.join('\n'));
Expand Down

0 comments on commit 1458756

Please sign in to comment.