From: Denise sur Lya Date: Sun, 14 Jun 2020 21:52:15 +0000 (+0200) Subject: Renommé site.py en app.py (+ une bricole) X-Git-Url: https://git.immae.eu/?p=perso%2FDenise%2Foms.git;a=commitdiff_plain;h=6ec182072c8282bae3227997281c643f5f2b99a7;hp=d38793f9260c1ca8b96a049d04cc801413c8fb0e Renommé site.py en app.py (+ une bricole) --- diff --git a/site.py b/app.py similarity index 100% rename from site.py rename to app.py 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: