py3 fix.
This commit is contained in:
parent
8d41d0019b
commit
ab3682a55c
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ class Item(object):
|
||||||
def update_with_attribute_updates(self, attribute_updates):
|
def update_with_attribute_updates(self, attribute_updates):
|
||||||
for attribute_name, update_action in attribute_updates.items():
|
for attribute_name, update_action in attribute_updates.items():
|
||||||
action = update_action['Action']
|
action = update_action['Action']
|
||||||
new_value = update_action['Value'].values()[0]
|
new_value = list(update_action['Value'].values())[0]
|
||||||
if action == 'PUT':
|
if action == 'PUT':
|
||||||
# TODO deal with other types
|
# TODO deal with other types
|
||||||
self.attrs[attribute_name] = DynamoType({"S": new_value})
|
self.attrs[attribute_name] = DynamoType({"S": new_value})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue