Commentaires Tom bis

This commit is contained in:
Robin Champenois 2021-02-06 22:48:03 +01:00
parent f48570bdaf
commit f7ac3313c8
2 changed files with 1 additions and 2 deletions

View file

@ -107,7 +107,6 @@ def handle_cas_connection(sender, instance, created, cas_login, attributes, **kw
year = dirs[2]
departement = dirs[3]
print(departement, dirs)
dep = dict(DEPARTEMENTS_DEFAUT).get(departement.lower(), "")

View file

@ -19,4 +19,4 @@ def approximate_distance(a, b):
def is_email_ens(mail, none=False):
if mail is None:
return none
return mail.endswith(".ens.fr") or mail.endswith(".ens.psl.eu")
return mail.endswith("ens.fr") or mail.endswith("ens.psl.eu")