Skip to content

Commit e85d340

Browse files
Copilotlhoupert
andauthored
chore: rename misleading loop counter variable in storage tier change script (#66)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: lhoupert <[email protected]>
1 parent c8296b6 commit e85d340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/change_storage_tier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def process_stac_item(
335335
stats["succeeded"] += len(objects_already_correct)
336336

337337
# Process objects that need to change
338-
for objects_changed, (obj_key, current_class) in enumerate(objects_to_change, start=1):
338+
for processed_count, (obj_key, current_class) in enumerate(objects_to_change, start=1):
339339
stats["processed"] += 1
340340

341341
success, _ = change_object_storage_class(
@@ -347,7 +347,7 @@ def process_stac_item(
347347
stats["failed"] += 1
348348

349349
# Log progress every 100 objects or at the end
350-
if objects_changed % 100 == 0 or objects_changed == len(objects_to_change):
350+
if processed_count % 100 == 0 or processed_count == len(objects_to_change):
351351
logger.info(
352352
f" Progress: {stats['processed']}/{total_objects} objects ({stats['processed']*100//max(total_objects, 1)}%)"
353353
)

0 commit comments

Comments
 (0)