From b1aa0485f0e098801be5f62749e6853d99c64717 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sat, 8 Oct 2022 22:52:34 +0200 Subject: [PATCH] WIP: validation don --- controle_don/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controle_don/main.py b/controle_don/main.py index 334638a..7cc5e5b 100755 --- a/controle_don/main.py +++ b/controle_don/main.py @@ -165,8 +165,8 @@ def validate(record): email) + "\n" mailtext = get_file_content_all(RECEPT_MAIL).replace("DATE-DON", date) + "\n" mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT).replace( - "DATE-DON", - date.replace("/", ".")) + "\n" + "DATE-DON", + record + "_" + date.replace("/", ".")) + "\n" # Opening PDF file as binary attachment = open(WORKDIR+"/validé/"+filename+".pdf", "rb")