better replace
This commit is contained in:
parent
5ca4f3ed8c
commit
2d21d9276b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def timestampScreen(timestamp):
|
||||||
|
|
||||||
def timedeltaToString(time):
|
def timedeltaToString(time):
|
||||||
"""Différence entre une heure en seconde et maintenant"""
|
"""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:
|
if len(age) == 4:
|
||||||
a = [1, 1, 1, 1] # a pour affichage
|
a = [1, 1, 1, 1] # a pour affichage
|
||||||
if len(age) == 3:
|
if len(age) == 3:
|
||||||
|
|
Reference in a new issue