WIP: validation don

This commit is contained in:
Adrien Bourmault 2022-10-08 22:52:34 +02:00
parent 42412c4b3c
commit b1aa0485f0
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,8 @@ def validate(record):
email) + "\n" email) + "\n"
mailtext = get_file_content_all(RECEPT_MAIL).replace("DATE-DON", date) + "\n" mailtext = get_file_content_all(RECEPT_MAIL).replace("DATE-DON", date) + "\n"
mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT).replace( mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT).replace(
"DATE-DON", "DATE-DON",
date.replace("/", ".")) + "\n" record + "_" + date.replace("/", ".")) + "\n"
# Opening PDF file as binary # Opening PDF file as binary
attachment = open(WORKDIR+"/validé/"+filename+".pdf", "rb") attachment = open(WORKDIR+"/validé/"+filename+".pdf", "rb")