added support for ScanIndexForward and actual range ordering on range items and not just the dictionaries
This commit is contained in:
parent
1e011d93d1
commit
598c22528f
@ -243,6 +243,10 @@ class DynamoHandler(BaseResponse):
|
||||
if limit:
|
||||
items = items[:limit]
|
||||
|
||||
reversed = self.body.get("ScanIndexForward")
|
||||
if reversed != False:
|
||||
items.reverse()
|
||||
|
||||
result = {
|
||||
"Count": len(items),
|
||||
"Items": [item.attrs for item in items],
|
||||
|
Loading…
Reference in New Issue
Block a user