From c86fc9bd2e82f0539add12dfc74d392d90456f85 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 14 Sep 2022 23:52:46 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 66d4183..c67c474 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -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