From 3e1336b8b884dacc932a1fdc4ec12d8e5cc3d603 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 10 Jun 2021 10:26:11 +0200 Subject: [PATCH] remove spaces at end of string --- 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 2f68c5c..15ba954 100644 --- a/src/utils/time.py +++ b/src/utils/time.py @@ -69,7 +69,7 @@ def timedeltaToString(time): age[1] = f"{age[1]}h " if a[1] == 1 else '' age[2] = f"{age[2]}m " if a[2] == 1 else '' age[3] = f"{age[3]}s" if a[3] == 1 else '' - return ''.join(age) + return ''.join(age).strip(' ') def getAge(date): """Décompose la différence entre une date et maintenant avec les bons timezone"""