Actually use the 'extra_where' option.
This commit is contained in:
@@ -124,7 +124,7 @@ class Node(List, Find, Create, Post, Update, Delete, Replace):
|
||||
where = copy.deepcopy(basic_properties)
|
||||
if extra_where:
|
||||
where.update(extra_where)
|
||||
existing_node = cls.find_first({'where': basic_properties}, api=api)
|
||||
existing_node = cls.find_first({'where': where}, api=api)
|
||||
if existing_node:
|
||||
# Just update the file ID and we're done.
|
||||
existing_node.properties.content_type = asset_type
|
||||
|
||||
Reference in New Issue
Block a user