From d57f7aefc1ccacaf7334336f0a9899ce785e4d1d Mon Sep 17 00:00:00 2001 From: zhiltsov-max Date: Wed, 3 Jun 2020 22:35:03 +0300 Subject: [PATCH] Fix cached exported annotations file name (#1635) --- cvat/apps/dataset_manager/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat/apps/dataset_manager/views.py b/cvat/apps/dataset_manager/views.py index c6e5b554..b622eaa6 100644 --- a/cvat/apps/dataset_manager/views.py +++ b/cvat/apps/dataset_manager/views.py @@ -47,7 +47,7 @@ def export_task(task_id, dst_format, server_url=None, save_images=False): cache_dir = get_export_cache_dir(db_task) exporter = EXPORT_FORMATS[dst_format] - output_base = '%s_%s' % ('dataset' if save_images else 'task', + output_base = '%s_%s' % ('dataset' if save_images else 'annotations', make_file_name(to_snake_case(dst_format))) output_path = '%s.%s' % (output_base, exporter.EXT) output_path = osp.join(cache_dir, output_path)