added support for ScanIndexForward and actual range ordering on range items and not just the dictionaries

This commit is contained in:
Jeff Gregory 2014-03-03 13:41:07 -08:00
parent 1e011d93d1
commit 598c22528f

View File

@ -243,6 +243,10 @@ class DynamoHandler(BaseResponse):
if limit: if limit:
items = items[:limit] items = items[:limit]
reversed = self.body.get("ScanIndexForward")
if reversed != False:
items.reverse()
result = { result = {
"Count": len(items), "Count": len(items),
"Items": [item.attrs for item in items], "Items": [item.attrs for item in items],