Skip to content

Commit 45864a6

Browse files
committed
Code cleanup
1 parent 37a7c07 commit 45864a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

superannotate/db/project_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ def set_images_annotation_statuses(project, image_names, annotation_status):
252252
"folder_id": project_folder["id"]
253253
}
254254
for start_index in range(0, len(image_names), NUM_TO_SEND):
255-
end_index = min(start_index + NUM_TO_SEND, len(image_names))
256-
data["image_names"] = image_names[start_index:end_index]
255+
data["image_names"] = image_names[start_index:start_index + NUM_TO_SEND]
257256
response = _api.send_request(
258257
req_type='PUT',
259258
path=f'/image/updateAnnotationStatusBulk',

0 commit comments

Comments
 (0)