Skip to content

Commit 76e09e1

Browse files
fix(LAB-3743): fix annotations fetching in labels
1 parent a510132 commit 76e09e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kili/adapters/kili_api_gateway/label/operations_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def list_labels_split(
113113
["content", "jsonContent", "resolution.width", "resolution.height"],
114114
)
115115
converter.patch_label_json_response(asset, label, label["annotations"])
116-
if "annotations" not in fields:
116+
if not any("annotations." in element for element in fields):
117117
label.pop("annotations")
118118
yield label
119119

0 commit comments

Comments
 (0)