Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
correction affichage rapport complet
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-Said committed May 12, 2022
1 parent b3c8386 commit a57982c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statistique.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def rapport_total(corpus):
f.write("Adresse;Longueur moyenne;Nombre de mails\n")
tab_adresses = longueur(IDs)
for adresse, vals in sorted(tab_adresses.items(), key=operator.itemgetter(1), reverse=True):
f.write(adresse + ";" + str(round(vals[1]/vals[0],1)) + ";" + str(vals[0]) + "\n")
f.write(adresse + ";" + str(round(vals[1]/vals[0],1)) + ";" + str(int(vals[0])) + "\n")
#rapport pour les pièces jointes
nb_pj = nb_mail_pj(IDs)
f.write("\nPourcentage de pièces jointes\n"+str(round(100*nb_pj/nb_corpus,2))+"%")
Expand Down

0 comments on commit a57982c

Please sign in to comment.