truongleswe / export-dynamodb

Export Amazon DynamoDb to CSV or JSON
GNU General Public License v3.0
52 stars 9 forks source link

Why is "cur_total" twice as much as it should be? #12

Open wtfzambo opened 4 years ago

wtfzambo commented 4 years ago

I was reading through the source code of this package cause I needed to copy something, when I realized that:

cur_total = (len(items) + raw_data['Count'])

Why is this defined like this? It effectively makes the count of total items retrieved twice as much as it actually is, since items = raw_data['Items'].