|
|
@@ -11,7 +11,8 @@ import logging
|
|
|
|
|
|
from core import logconf
|
|
|
from core.mail import Mail
|
|
|
-from core.pde import ControlesDb
|
|
|
+from core.pde import ControlesDb, RSCDIR
|
|
|
+
|
|
|
|
|
|
logger = logging.getLogger("mails_rappel_ctrl")
|
|
|
logconf.start("mails_rappel_ctrl", logging.DEBUG)
|
|
|
@@ -35,7 +36,7 @@ CONTACT = "jacky.klein@bas-rhin.fr"
|
|
|
|
|
|
# Contenu des mails automatiques
|
|
|
# NB: variables optionelles utilisables dans CONTENT: {chantier_id}, {date_status}, {contact}
|
|
|
-with open("mail.html", encoding="utf-8") as f:
|
|
|
+with open(RSCDIR / "mail.html", encoding="utf-8") as f:
|
|
|
content = f.read()
|
|
|
|
|
|
# # INITIALISATION
|