From ced6e92fa206e76f2fc92540d7d46a00193cd359 Mon Sep 17 00:00:00 2001 From: viennet Date: Tue, 29 Dec 2020 23:49:08 +0100 Subject: [PATCH] Ameliore notification mail saisie note --- sco_news.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sco_news.py b/sco_news.py index 5b5d2368..4ba17c99 100644 --- a/sco_news.py +++ b/sco_news.py @@ -252,8 +252,7 @@ def scolar_news_summary_rss(context, title, sco_url, n=5): def _send_news_by_mail(context, n): - """Notify by email - """ + """Notify by email""" infos = _get_formsemestre_infos_from_news(context, n) formsemestre_id = infos.get("formsemestre_id", None) prefs = context.get_preferences(formsemestre_id=formsemestre_id) @@ -265,8 +264,10 @@ def _send_news_by_mail(context, n): # txt = n["text"] if infos: + txt += "\n\nSemestre %(titremois)s\n\n" % infos["sem"] txt += ( - '\n\nSemestre %(descr_sem)s)' + """%(descr_sem)s + """ % infos ) txt += "\n\nEffectué par: %(nomcomplet)s\n" % n["user_info"]