diff --git a/avisstage/models.py b/avisstage/models.py index 44cda56..1b63c8d 100644 --- a/avisstage/models.py +++ b/avisstage/models.py @@ -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(), "") diff --git a/avisstage/utils.py b/avisstage/utils.py index 57e8410..822f8ae 100644 --- a/avisstage/utils.py +++ b/avisstage/utils.py @@ -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")