File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 2525from lib .app .annotation_helpers import add_annotation_polygon_to_json
2626from lib .app .annotation_helpers import add_annotation_polyline_to_json
2727from lib .app .annotation_helpers import add_annotation_template_to_json
28- from lib .app .exceptions import EmptyOutputError
2928from lib .app .helpers import extract_project_folder
3029from lib .app .helpers import get_annotation_paths
3130from lib .app .helpers import reformat_metrics_json
4140from lib .app .serializers import TeamSerializer
4241from lib .core .enums import ImageQuality
4342from lib .core .exceptions import AppException
44- from lib .core .exceptions import AppValidationException
4543from lib .core .types import ClassesJson
4644from lib .infrastructure .controller import Controller
4745from plotly .subplots import make_subplots
@@ -3289,6 +3287,7 @@ def upload_image_to_project(
32893287 if response .errors :
32903288 raise AppException (response .errors )
32913289
3290+
32923291@validate_arguments
32933292def search_models (
32943293 name : Optional [NotEmptyStr ] = None ,
Original file line number Diff line number Diff line change @@ -628,12 +628,12 @@ def validate_folder(self):
628628 if not self ._folder .name :
629629 raise AppValidationException ("Folder name cannot be empty." )
630630 if (
631- len (
632- set (self ._folder .name ).intersection (
633- constances .SPECIAL_CHARACTERS_IN_PROJECT_FOLDER_NAMES
634- )
631+ len (
632+ set (self ._folder .name ).intersection (
633+ constances .SPECIAL_CHARACTERS_IN_PROJECT_FOLDER_NAMES
635634 )
636- > 0
635+ )
636+ > 0
637637 ):
638638 self ._folder .name = "" .join (
639639 "_"
@@ -644,6 +644,7 @@ def validate_folder(self):
644644 logger .warning (
645645 "New folder name has special characters. Special characters will be replaced by underscores."
646646 )
647+
647648 def execute (self ):
648649 if self .is_valid ():
649650 self ._folder .project_id = self ._project .uuid
@@ -998,12 +999,12 @@ def validate_folder(self):
998999 if not self ._folder .name :
9991000 raise AppValidationException ("Folder name cannot be empty." )
10001001 if (
1001- len (
1002- set (self ._folder .name ).intersection (
1003- constances .SPECIAL_CHARACTERS_IN_PROJECT_FOLDER_NAMES
1004- )
1002+ len (
1003+ set (self ._folder .name ).intersection (
1004+ constances .SPECIAL_CHARACTERS_IN_PROJECT_FOLDER_NAMES
10051005 )
1006- > 0
1006+ )
1007+ > 0
10071008 ):
10081009 self ._folder .name = "" .join (
10091010 "_"
You can’t perform that action at this time.
0 commit comments