WIP: validation don
This commit is contained in:
parent
42412c4b3c
commit
b1aa0485f0
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue