From 2d21d9276ba020e45bb1fb006e82eb327cedba9b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 15 Jun 2021 09:10:34 +0200 Subject: [PATCH] better replace --- src/utils/time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/time.py b/src/utils/time.py index ced905a..bc99ef6 100644 --- a/src/utils/time.py +++ b/src/utils/time.py @@ -56,7 +56,7 @@ def timestampScreen(timestamp): def timedeltaToString(time): """Différence entre une heure en seconde et maintenant""" - age = str(timedelta(seconds = time)).replace('days, ', 'jours, :').replace('day, ', 'jour, :').split(':') + age = str(timedelta(seconds = time)).replace('day', 'jour').replace(', ', ', :').split(':') if len(age) == 4: a = [1, 1, 1, 1] # a pour affichage if len(age) == 3: