From dd7f399744de54cfa8f42e213690a5220973f54f Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Mon, 3 Mar 2014 11:23:12 +0100 Subject: [PATCH] [chambres_vides] Les adresses mail finssent maintenant toute bien par @crans.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit et puis, on ne peut pas faire ce test avec un attribut mail mais seulement avec un str, du coup… --- gestion/chambres_vides.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gestion/chambres_vides.py b/gestion/chambres_vides.py index fdb74c46..1d568e3a 100755 --- a/gestion/chambres_vides.py +++ b/gestion/chambres_vides.py @@ -66,8 +66,6 @@ for clandestin in bad_boys_e_s: if (sendmails and machine_liste != [] or DEBUG) and (ttl >= (delai - 1)*86400 or 0 < ttl <= 86400): # On lui envoie un mail pour le prévenir to = clandestin['mail'][0] - if not "@" in to: - to += "@crans.org" mail = mail_module.generate('demenagement', {"from" : "respbats@crans.org", "chambre" : exchambre, "jours" : int(ttl/86400) + 1,