File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/superannotate/lib/app/interface Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -671,8 +671,9 @@ def copy_images(
671671
672672 project_name , source_folder_name = extract_project_folder (source_project )
673673
674- _ , destination_folder_name = extract_project_folder (destination_project )
675-
674+ to_project_name , destination_folder_name = extract_project_folder (destination_project )
675+ if project_name != to_project_name :
676+ raise AppException ("Source and destination projects should be the same for copy_images" )
676677 if not image_names :
677678 images = controller .search_images (
678679 project_name = project_name , folder_path = source_folder_name
@@ -734,7 +735,10 @@ def move_images(
734735 ]:
735736 raise AppException (LIMITED_FUNCTIONS [project ["project" ].project_type ])
736737
737- _ , destination_folder_name = extract_project_folder (destination_project )
738+ to_project_name , destination_folder_name = extract_project_folder (destination_project )
739+
740+ if project_name != to_project_name :
741+ raise AppException ("Source and destination projects should be the same for move_images" )
738742
739743 if not image_names :
740744 images = controller .search_images (
You can’t perform that action at this time.
0 commit comments