This commit is contained in:
Steve Pulec 2015-11-07 16:58:39 -05:00
parent 8d41d0019b
commit ab3682a55c

View File

@ -124,7 +124,7 @@ class Item(object):
def update_with_attribute_updates(self, attribute_updates):
for attribute_name, update_action in attribute_updates.items():
action = update_action['Action']
new_value = update_action['Value'].values()[0]
new_value = list(update_action['Value'].values())[0]
if action == 'PUT':
# TODO deal with other types
self.attrs[attribute_name] = DynamoType({"S": new_value})