WIP: contrôle cotisation
This commit is contained in:
parent
a2088d7745
commit
c86fc9bd2e
|
@ -332,9 +332,10 @@ def validate(member):
|
||||||
os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex"))
|
os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex"))
|
||||||
|
|
||||||
# Preparing mail
|
# Preparing mail
|
||||||
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS) + "\n"
|
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS).replace("COURRIEL-COTISANT",
|
||||||
mailtext = get_file_content_all(RECEPT_MAIL).replace("COURRIEL-COTISANT",
|
answer["email"]) + "\n"
|
||||||
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"
|
mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT) + "\n"
|
||||||
|
|
||||||
# Opening PDF file as binary
|
# Opening PDF file as binary
|
||||||
|
|
Loading…
Reference in New Issue