From f4a2a0f888426c0b0b768daf4996f34fd557eee0 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 9 Oct 2023 15:29:01 +0200 Subject: [PATCH] Sujet mail notif chgt adr. Fix #738 --- app/scodoc/sco_etud.py | 6 +++--- sco_version.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_etud.py b/app/scodoc/sco_etud.py index 71f53bbd5..643b7db9c 100644 --- a/app/scodoc/sco_etud.py +++ b/app/scodoc/sco_etud.py @@ -428,10 +428,10 @@ def notify_etud_change(email_addr, etud, before, after, subject): return # pas de changements txt = "\n".join(txt) # build mail - log("notify_etud_change: sending notification to %s" % email_addr) - log("notify_etud_change: subject: %s" % subject) + log(f"notify_etud_change: sending notification to {email_addr}") + log(f"notify_etud_change: subject: {subject}") log(txt) - email.send_email(subject, email.get_from_addr(), [email_addr], txt) + email.send_email("[ScoDoc] " + subject, email.get_from_addr(), [email_addr], txt) return txt diff --git a/sco_version.py b/sco_version.py index 7647619cf..45da20ff0 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.41" +SCOVERSION = "9.6.42" SCONAME = "ScoDoc"