better replace

This commit is contained in:
Mylloon 2021-06-15 09:10:34 +02:00
parent 5ca4f3ed8c
commit 2d21d9276b

View file

@ -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: