Commit 89e0a1f7 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue Committed by Hamza Dely

Corrige le délai annoncé dans le mail de fin de connexion

 * Si (fin_connexion - now).days = x, alors la connexion finit dans
 moins de x+1 jours, pas dans moins de x jours.
parent 5addd4d6
......@@ -91,7 +91,7 @@ def warn(mail_conn, adh):
fin = compute_fin_connexion(adh)
delai = (fin - datetime.datetime.now(pytz.UTC)).days
data = {
'delai': delai,
'delai': delai + 1,
'adh': adh,
}
for l in fields:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment