diff --git a/sco_news.py b/sco_news.py index 5b5d236..4ba17c9 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"]