From 2989449b251ac65d96cac56f55c0343cdfcda539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 6 Jul 2016 16:18:34 +0200 Subject: [PATCH] Actually use the 'extra_where' option. --- pillarsdk/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillarsdk/nodes.py b/pillarsdk/nodes.py index 2b654c7..e75675e 100755 --- a/pillarsdk/nodes.py +++ b/pillarsdk/nodes.py @@ -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