diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index bfa1016c..02691dd5 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -539,7 +539,7 @@ class CransLdap: # Conversion avant stockage dans la base if type(args) == str: args = [args] args = map(lambda x:preattr(x)[1], args) - if type(start) == int: start = [start] + if type(start) in [int, float]: start = [start] start = map(lambda x:preattr(x)[1], start) if new in serv.keys():