Merge pull request #1872 from uncovertruth/fix/wrong_type_if_exists
Fix wrong type if exists
This commit is contained in:
commit
a22cb410b0
@ -162,8 +162,9 @@ class Item(BaseModel):
|
|||||||
|
|
||||||
# If it already exists, get its value so we dont overwrite it
|
# If it already exists, get its value so we dont overwrite it
|
||||||
if path in self.attrs:
|
if path in self.attrs:
|
||||||
value = self.attrs[path].cast_value
|
value = self.attrs[path]
|
||||||
|
|
||||||
|
if type(value) != DynamoType:
|
||||||
if value in expression_attribute_values:
|
if value in expression_attribute_values:
|
||||||
value = DynamoType(expression_attribute_values[value])
|
value = DynamoType(expression_attribute_values[value])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user