WIP: contrôle cotisation

This commit is contained in:
Adrien Bourmault 2022-09-14 23:52:46 +02:00
parent a2088d7745
commit c86fc9bd2e
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 4 additions and 3 deletions

View File

@ -332,9 +332,10 @@ def validate(member):
os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex"))
# Preparing mail
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS) + "\n"
mailtext = get_file_content_all(RECEPT_MAIL).replace("COURRIEL-COTISANT",
answer["email"] + "\n")
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS).replace("COURRIEL-COTISANT",
answer["email"]) + "\n"
mailtext = get_file_content_all(RECEPT_MAIL).replace("ANNEE-CIVILE",
answer["date"][:4])
mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT) + "\n"
# Opening PDF file as binary