some cleanup

This commit is contained in:
Kenneth Kehl
2024-09-13 11:22:50 -07:00
parent 3737865153
commit 641b01d094
3 changed files with 11 additions and 3 deletions

View File

@@ -96,7 +96,6 @@ def cleanup_old_s3_objects():
time_limit = aware_utcnow() - datetime.timedelta(days=14)
try:
response = s3_client.list_objects_v2(Bucket=bucket_name)
print(f"RESPONSE = {response}")
while True:
for obj in response.get("Contents", []):
if obj["LastModified"] <= time_limit: