Fix for dynamodb2 attribute response. Closes #374.
This commit is contained in:
parent
0d07320e03
commit
e5caaf5913
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,9 @@ class Item(object):
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
attributes = {}
|
attributes = {}
|
||||||
for attribute_key, attribute in self.attrs.items():
|
for attribute_key, attribute in self.attrs.items():
|
||||||
attributes[attribute_key] = attribute.value
|
attributes[attribute_key] = {
|
||||||
|
attribute.type : attribute.value
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"Attributes": attributes
|
"Attributes": attributes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue