diff --git a/CHANGELOG.md b/CHANGELOG.md index 1882d3e2..31f9728f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Uncaught TypeError: this.el.node.getScreenCTM() is null in Firefox () - Bug: canvas is busy when start playing, start resizing a shape and do not release the mouse cursor () - Bug: could not receive frame N. TypeError: Cannot read properties of undefined (reding "filename") () +- Cannot choose a dataset format for a linked repository if a task type is annotation () - Fixed tus upload error over https () - Issues disappear when rescale a browser () - Auth token key is not returned when registering without email verification () diff --git a/cvat/apps/dataset_manager/formats/registry.py b/cvat/apps/dataset_manager/formats/registry.py index 4e86969e..c420ef63 100644 --- a/cvat/apps/dataset_manager/formats/registry.py +++ b/cvat/apps/dataset_manager/formats/registry.py @@ -57,10 +57,11 @@ EXPORT_FORMATS = {} def format_for(export_format, mode): format_name = export_format - if mode == "annotation": - format_name = "CVAT for images 1.1" - elif export_format not in EXPORT_FORMATS: - format_name = "CVAT for video 1.1" + if export_format not in EXPORT_FORMATS: + if mode == "annotation": + format_name = "CVAT for images 1.1" + else: + format_name = "CVAT for video 1.1" return format_name