From 303e3913ee01fa8ecb58e5a62a8caf6b89de3cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Tue, 16 Apr 2013 02:47:03 +0200 Subject: [PATCH] =?UTF-8?q?[chambres=5Fvides]=20=C2=AB=C2=A0Un=20mail,=20p?= =?UTF-8?q?as=20dix,=20envoyer=20un=20mail=20par=20jour=20jusqu'=C3=A0=20c?= =?UTF-8?q?e=20que=20le=20type=20r=C3=A9ponde,=20j'appelle=20=C3=A7a=20du?= =?UTF-8?q?=20harc=C3=A8lement=C2=A0=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/chambres_vides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/chambres_vides.py b/gestion/chambres_vides.py index 70305fe1..488f4bdf 100755 --- a/gestion/chambres_vides.py +++ b/gestion/chambres_vides.py @@ -63,7 +63,7 @@ for clandestin in bad_boys_e_s: delta = now - kickout_date ttl = delai*86400 - delta if ttl > 0: - if sendmails and machine_liste != [] or DEBUG: + 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() if not "@" in to: