Code cleanup

This commit is contained in:
drigato 2014-11-12 14:42:34 -05:00
parent 5cf5ff4fa1
commit c132cac43d
5 changed files with 35 additions and 22 deletions

View file

@ -136,9 +136,9 @@ class PypoFile(Thread):
"""
If an object_name exists the file is stored on Amazon S3
"""
if 'object_name' in media_item:
if 'amazonS3_resource_id' in media_item:
csd = CloudStorageDownloader()
csd.download_obj(media_item['dst'], media_item['object_name'])
csd.download_obj(media_item['dst'], media_item['amazonS3_resource_id'])
media_item['file_ready'] = True
else:
self.copy_file(media_item)