minor optimizations

This commit is contained in:
Gert Wohlgemuth
2018-05-24 00:31:16 -07:00
parent ad36947fe2
commit 6689c88a7c
3 changed files with 4 additions and 7 deletions

View File

@@ -192,8 +192,6 @@ def cron(event, context):
MessageStructure='json'
)
print(result)
if 'LastEvaluatedKey' in response:
return table.scan(
ExclusiveStartKey=response['LastEvaluatedKey']
@@ -207,4 +205,6 @@ def cron(event, context):
while 'LastEvaluatedKey' in response:
response = fetch(response, table)
pass
return {
"statusCode": 200
}