Fix cached exported annotations file name (#1635)

main
zhiltsov-max 6 years ago committed by GitHub
parent bb69fd4fce
commit d57f7aefc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save