From 5d721e278360af32b6d0d47a981a306dc6943ba9 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 15 Sep 2022 00:06:45 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20contr=C3=B4le=20cotisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 2a7f451..2e83b7f 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -203,10 +203,10 @@ def notify_unpaid(member): # Get member infos name, numero, email = get_member_infos(member) - amount = gestion_get_amount(member) - print(amount) + amount = "{},{}".format(str(gestion_get_amount(member))[:-2], + str(gestion_get_amount(member))[-2:]) - BUF.append("* {} (numero {}), {}, {}".format(member, numero, name, amount)) + BUF.append("* {} (numero {}), {}, {} €".format(member, numero, name, amount)) BUF.append(" NOTIFICATION MEMBRE") BUF.append("") return True @@ -228,7 +228,7 @@ def check_expired_unpaid(): # Check expired members if set(expired_members) != set(os.listdir(WORKDIR+"/expiré")): - BUF.append("Membres expirés : {}".format(gestion_get_expired())) + BUF.append("Membres expirés : {}\n".format(gestion_get_expired())) # Check for no-more-expired members for record in os.listdir(WORKDIR+"/expiré"): @@ -244,7 +244,7 @@ def check_expired_unpaid(): # Check unpaid members if set(unpaid_members) != set(os.listdir(WORKDIR+"/impayé")): - BUF.append("Membres en impayé : {}".format(gestion_get_unpaid())) + BUF.append("Membres en impayé : {}\n".format(gestion_get_unpaid())) # Check for no-more-unpaid members for record in os.listdir(WORKDIR+"/impayé"):