enumerate

This commit is contained in:
brmnjsh 2023-09-08 15:51:42 +00:00
parent 91e1640697
commit 2ae15f9237

View File

@ -31,10 +31,9 @@ def get_object(key: str, bucket: str) -> bytes:
def get_object_tag(key: str, bucket: str, tag_key: str) -> Union[str, None]:
tags = get_object_tags(key, bucket)
tag_index = 0
while tag_index < len(tags):
tag = tags[tag_index]
for i, tag in enumerate(tags):
tag = tags[i]
if tag['Key'] == tag_key:
return tag
else: