Skip to content

Commit

Permalink
Remove superfluous variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonnnj committed Jun 28, 2019
1 parent 2091b68 commit ab37bbf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aws_jobs/cyhy-data-extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ def cleanup_bucket_files(object_retention_days):
else:
break

obj_list = response["Contents"]
del_list = [
{"Key": o["Key"]}
for o in obj_list
for o in response["Contents"]
if flatten_datetime(o["LastModified"]) < retention_time
]
# AWS requires a list of objects and an empty list is seen as malformed.
Expand Down

0 comments on commit ab37bbf

Please sign in to comment.