Skip to content

Commit

Permalink
Merge pull request #38 from loadimpact/master
Browse files Browse the repository at this point in the history
Make sure all S3 keys are listed
  • Loading branch information
JeremyGrosser committed Feb 22, 2014
2 parents 29f578a + c055687 commit dd11f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tableslurp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class DownloadHandler(object):
(self.prefix, target_file))
# Otherwise try to fetch the most recent one
else:
keys = [_ for _ in bucket.get_all_keys(prefix='%s/' %
keys = [_ for _ in bucket.list(prefix='%s/' %
(self.prefix,)) if _.name.endswith('-listdir.json')]
if keys:
keys.sort(key=lambda l: parser.parse(l.last_modified))
Expand Down

0 comments on commit dd11f2e

Please sign in to comment.