fix: [import urlextract parent] fix typo

This commit is contained in:
Terrtia 2020-05-05 11:39:06 +02:00
parent 074ada504a
commit bae2fd79df
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -29,7 +29,7 @@ def get_item_filepath(item_id):
def add_item_parent_by_parent_id(parent_type, parent_id, item_id): def add_item_parent_by_parent_id(parent_type, parent_id, item_id):
parent_item_id = get_obj_id_item_id(parent_type, parent_id) parent_item_id = get_obj_id_item_id(parent_type, parent_id)
if parent_item_id: if parent_item_id:
add_item_parent(item_parent, item_id) add_item_parent(parent_item_id, item_id)
def add_item_parent(parent_item_id, item_id): def add_item_parent(parent_item_id, item_id):
if not exist_item(parent_item_id): if not exist_item(parent_item_id):