delete list interactivity + fix create empty list
This commit is contained in:
@ -72,8 +72,9 @@ def createList():
|
||||
items = data.get('items')
|
||||
list_uuid = create_list(name, description)
|
||||
if list_uuid:
|
||||
for item in items.split('#'):
|
||||
add_to_list(list_uuid, item)
|
||||
if len(items)>0 :
|
||||
for item in items.split('#'):
|
||||
add_to_list(list_uuid, item)
|
||||
return jsonify({'created list ': name}), 200
|
||||
else:
|
||||
return jsonify({'create failed': name}), 400
|
||||
|
Reference in New Issue
Block a user