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é"):