WIP: contrôle cotisation

This commit is contained in:
Adrien Bourmault 2022-09-15 00:06:45 +02:00
parent bda6c17d1b
commit 5d721e2783
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 5 additions and 5 deletions

View File

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