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
1 changed files with 4 additions and 0 deletions
|
|
@ -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],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue