Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
aknuds1 committed Jan 9, 2016
1 parent 09a26be commit d7e1a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backup_rethinkdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def backup_rethinkdb(rethinkdb_host, s3_bucket, remove_local_backup):
retention_period = 100
resp = s3_client.list_objects(Bucket=s3_bucket)
now = datetime.now(timezone.utc)
for obj in [o for o in resp['Contents'] if o['Key'].startswith('rethinkdb-dump')]:
for obj in [o for o in resp['Contents'] if o['Key'].startswith(
'rethinkdb-dump')]:
key = obj['Key']
last_modified = obj['LastModified']
gap = now - last_modified
Expand Down

0 comments on commit d7e1a4c

Please sign in to comment.