X-Git-Url: https://git.immae.eu/?p=perso%2FDenise%2Foms.git;a=blobdiff_plain;f=gestion_donnees.py;h=653bf9b4bfd81e8b727ebae42e6e622ef1105f24;hp=2177fc8ae9e3f8c3f26b375c40aab5ae84860d78;hb=6ec182072c8282bae3227997281c643f5f2b99a7;hpb=d38793f9260c1ca8b96a049d04cc801413c8fb0e diff --git a/gestion_donnees.py b/gestion_donnees.py index 2177fc8..653bf9b 100644 --- a/gestion_donnees.py +++ b/gestion_donnees.py @@ -53,7 +53,7 @@ def convertit_age_vers_texte(nombre): annees = int(nombre / jours_dans_annee) restant = nombre - round(annees*jours_dans_annee) mois = int(restant/jours_dans_mois) - jours= restant - round(mois*jours_dans_mois) + jours= nombre - round(mois*jours_dans_mois + annees*jours_dans_annee) chaine = "" if annees >0: