From ff1a88c85b010ac7859bccc2c149f983cd1a3353 Mon Sep 17 00:00:00 2001 From: Jordan ERNST Date: Tue, 2 Apr 2019 17:22:06 +0200 Subject: [PATCH] Fix print number of days since expired. --- IFPass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IFPass.py b/IFPass.py index 585b657..eb2e336 100644 --- a/IFPass.py +++ b/IFPass.py @@ -405,7 +405,7 @@ def membersearch(): if diff > 0: print(colored(f"L'abonnement est encore valable {diff} jours.", 'green', attrs=['bold'])) elif diff < 0: - print(colored("L'abonnement est expiré depuis {abs(diff)} jours.", 'red', attrs=['bold'])) # abs() to remove minus sign + print(colored(f"L'abonnement est expiré depuis {abs(diff)} jours.", 'red', attrs=['bold'])) # abs() to remove minus sign elif diff == 0: print(colored("Il s'agit du dernier jour de l'abonnement, il expirera demain.", 'yellow', attrs=['bold']))