From 02f506689c291edc1cfa5399db8baba6ed8aa9eb Mon Sep 17 00:00:00 2001 From: DylanCarbone <94693787+DylanCarbone@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:13:05 +0000 Subject: [PATCH] Update aws_scripts.py Hi @KatrionaGoldmann, are these brackets missing? --- utils/aws_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/aws_scripts.py b/utils/aws_scripts.py index 4209176..d774ee8 100644 --- a/utils/aws_scripts.py +++ b/utils/aws_scripts.py @@ -218,7 +218,7 @@ def get_objects( total_files, all_keys = count_files(s3_client, bucket_name, prefix) first_dt = get_datetime_from_string(os.path.basename(all_keys[0])) - last_dt = get_datetime_from_string(os.path.basename(all_keys[-1] + last_dt = get_datetime_from_string(os.path.basename(all_keys[-1])) paginator = s3_client.get_paginator("list_objects_v2") operation_parameters = {"Bucket": bucket_name, "Prefix": prefix}