1. Ludia
  2. Untitled project
  3. dynamodb-mock

Source

dynamodb-mock / ddbmock / operations / scan.py

Diff from to

File ddbmock/operations/scan.py

  • Ignore whitespace
         "Count": len(results.items),
         "ScannedCount": results.scanned,
         "ConsumedCapacityUnits": capacity,
-        #TODO: last evaluated key where applicable
     }
 
+    if results.last_key is not None:
+        ret['LastEvaluatedKey'] = results.last_key
+
     if not post[u'Count']:
         ret[u'Items'] = results.items