user import: strip spaces

This commit is contained in:
Alexandre Aubin 2021-08-27 13:52:10 +02:00
parent c20ca3015e
commit 8e35cd8103

View file

@ -667,7 +667,9 @@ def user_import(operation_logger, csvfile, update=False, delete=False):
is_well_formatted = True
def to_list(str_list):
return str_list.split(',') if str_list else []
L = str_list.split(',') if str_list else []
L = [l.strip() for l in L]
return L
users_in_csv = []
existing_users = user_list()['users']