enumerate
This commit is contained in:
parent
91e1640697
commit
2ae15f9237
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user