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

Commit

Permalink
Update to 3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-Said committed May 14, 2022
1 parent a57982c commit c63c1f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Projet INTER2-HUT ✉
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Gaiko19/INTER2-HUT)](https://github.com/Gaiko19/INTER2-HUT/releases/tag/v3.0.4)
![GitHub version](https://img.shields.io/badge/version-3.0.4-brightgreen)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Gaiko19/INTER2-HUT)](https://github.com/Gaiko19/INTER2-HUT/releases/tag/v3.0.5)
![GitHub version](https://img.shields.io/badge/version-3.0.5-brightgreen)

![GitHub](https://img.shields.io/github/license/Gaiko19/INTER2-HUT)
![GitHub all releases](https://img.shields.io/github/downloads/Gaiko19/INTER2-HUT/total)
Expand All @@ -20,7 +20,7 @@ Pour ce faire le programme utilise des mails exportés depuis Thunderbird qu'il

❗ Il vous faut avoir Python3 🐍 d'installé sur votre machine ❗

1. Tout d'abord [téléchargez le package sur notre Github](https://github.com/Gaiko19/INTER2-HUT/releases/tag/v3.0.4).
1. Tout d'abord [téléchargez le package sur notre Github](https://github.com/Gaiko19/INTER2-HUT/releases).
2. Depuis Thunderbird exportez vos mails dans des fichiers.
- Pour ce faire, sélectionnez les dossiers dans l'arborescence à gauche (ou Boîte de réception).
- Clique droit, Enregistrez-sous, Format texte brut.
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def menuAction(corpus):

def main() :
cleanScreen()
print("------- Scripts HUT V3.0.4 -------")
print("------- Scripts HUT V3.0.5 -------")

# Création dossiers de dépôt et de destination
try:
Expand Down
8 changes: 4 additions & 4 deletions statistique.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ def longueur(corpus):
length = len(file) - 6
array_value = []
if adresse in tab_adresses:
cpt = tab_adresses.get(adresse)[0]
cpt = tab_adresses.get(adresse)[1]
array_value.append((tab_adresses.get(adresse)[0] + length))
array_value.append(cpt+1)
array_value.append((tab_adresses.get(adresse)[1] + length))
tab_adresses[adresse] = array_value
else:
array_value.append(1)
array_value.append(length)
array_value.append(1)
tab_adresses[adresse] = array_value
return tab_adresses

Expand Down 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(int(vals[0])) + "\n")
f.write(adresse + ";" + str(round(vals[0]/vals[1],1)) + ";" + str(int(vals[1])) + "\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 c63c1f2

Please sign in to comment.