mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
user import: strip spaces
This commit is contained in:
parent
c20ca3015e
commit
8e35cd8103
1 changed files with 3 additions and 1 deletions
|
@ -667,7 +667,9 @@ def user_import(operation_logger, csvfile, update=False, delete=False):
|
||||||
is_well_formatted = True
|
is_well_formatted = True
|
||||||
|
|
||||||
def to_list(str_list):
|
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 = []
|
users_in_csv = []
|
||||||
existing_users = user_list()['users']
|
existing_users = user_list()['users']
|
||||||
|
|
Loading…
Add table
Reference in a new issue