Skip to content

Commit 369672c

Browse files
committed
address PR comments
1 parent b5da8d1 commit 369672c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nucleus/payload_constructor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def construct_segmentation_payload(
5252
for annotation_item in annotation_items:
5353
annotations.append(annotation_item.to_payload())
5454

55-
return {SEGMENTATIONS_KEY: annotations, "force": update}
55+
return {SEGMENTATIONS_KEY: annotations, ANNOTATION_UPDATE_KEY: update}
5656

5757

5858
def construct_box_predictions_payload(

tests/test_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_batch_semseg_gt_upload_update(dataset):
123123
assert response["annotations_processed"] == 5
124124
assert response["annotations_ignored"] == 0
125125

126-
# When we re-upload, expect them to be ignored
126+
# When we re-upload, expect uploads to be processed
127127
response = dataset.annotate(annotations=annotations, update=True)
128128
assert response["dataset_id"] == dataset.id
129129
assert response["annotations_processed"] == 5

0 commit comments

Comments
 (0)