From 2c733c0b005f7896d34f47ba41073049bde134bb Mon Sep 17 00:00:00 2001 From: kprokofi Date: Wed, 18 Dec 2024 21:33:42 +0900 Subject: [PATCH] update all_label_ids --- src/otx/core/types/export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/otx/core/types/export.py b/src/otx/core/types/export.py index 875c065128..fc35a39b8f 100644 --- a/src/otx/core/types/export.py +++ b/src/otx/core/types/export.py @@ -103,7 +103,8 @@ def to_metadata(self) -> dict[tuple[str, str], str]: all_label_ids = "" for lbl in self.label_info.label_names: all_labels += lbl.replace(" ", "_") + " " - all_label_ids += lbl.replace(" ", "_") + " " + for lbl_id in self.label_info.label_ids: + all_label_ids += lbl_id + " " metadata = { # Common