From 579d2b41b5e8f189a1792396d6ee5bf9e794f598 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinin Date: Tue, 17 Aug 2021 09:28:09 +0300 Subject: [PATCH] Fixed comments --- cvat-ui/src/components/projects-page/actions-menu.tsx | 3 ++- cvat/apps/dataset_manager/bindings.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cvat-ui/src/components/projects-page/actions-menu.tsx b/cvat-ui/src/components/projects-page/actions-menu.tsx index 75d71508652f..c85684ad6dbf 100644 --- a/cvat-ui/src/components/projects-page/actions-menu.tsx +++ b/cvat-ui/src/components/projects-page/actions-menu.tsx @@ -37,12 +37,13 @@ export default function ProjectActionsMenuComponent(props: Props): JSX.Element { return ( - Delete dispatch(exportActions.openExportModal(projectInstance))} > Export project dataset +
+ Delete
); } diff --git a/cvat/apps/dataset_manager/bindings.py b/cvat/apps/dataset_manager/bindings.py index 6805197742f8..2062e0333fba 100644 --- a/cvat/apps/dataset_manager/bindings.py +++ b/cvat/apps/dataset_manager/bindings.py @@ -1012,7 +1012,7 @@ def _make_image(i, **kwargs): attributes["labels"].append({"label_id": idx, "name": label["name"], "color": label["color"]}) attributes["track_id"] = -1 - dm_item = datumaro.DatasetItem(id=osp.split(frame_data.name)[-1].split('.')[0], + dm_item = datumaro.DatasetItem(id=osp.splitext(osp.split(frame_data.name)[-1])[0], annotations=dm_anno, point_cloud=dm_image[0], related_images=dm_image[1], attributes=attributes, subset=frame_data.subset) dm_items.append(dm_item)