Fixed gen() doesn't have len() error.

This commit is contained in:
Dmitry Zv 2016-03-16 16:17:41 -06:00
parent c2df7732e5
commit c52e9215b2

View File

@ -369,7 +369,7 @@ class Table(object):
if scan_index_forward is False:
results.reverse()
scanned_count = len(self.all_items())
scanned_count = len(list(self.all_items()))
results, last_evaluated_key = self._trim_results(results, limit,
exclusive_start_key)