Actually use the 'extra_where' option.

This commit is contained in:
2016-07-06 16:18:34 +02:00
parent d03cf7f73f
commit 2989449b25

View File

@@ -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