Fix for dynamodb2 attribute response. Closes #374.

This commit is contained in:
Steve Pulec 2015-07-14 21:57:14 -04:00 committed by Andrew Harris
parent b67e02cceb
commit c8bf862826

View File

@ -81,7 +81,9 @@ class Item(object):
def to_json(self):
attributes = {}
for attribute_key, attribute in self.attrs.items():
attributes[attribute_key] = attribute.value
attributes[attribute_key] = {
attribute.type : attribute.value
}
return {
"Attributes": attributes