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

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): ...@@ -91,7 +91,7 @@ def warn(mail_conn, adh):
fin = compute_fin_connexion(adh) fin = compute_fin_connexion(adh)
delai = (fin - datetime.datetime.now(pytz.UTC)).days delai = (fin - datetime.datetime.now(pytz.UTC)).days
data = { data = {
'delai': delai, 'delai': delai + 1,
'adh': adh, 'adh': adh,
} }
for l in fields: for l in fields:
......
Supports Markdown
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