Skip to content

Commit deb7c9e

Browse files
Vaghinak BasentsyanVaghinak Basentsyan
authored andcommitted
tod
1 parent e89922b commit deb7c9e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from lib.app.annotation_helpers import add_annotation_polygon_to_json
2626
from lib.app.annotation_helpers import add_annotation_polyline_to_json
2727
from lib.app.annotation_helpers import add_annotation_template_to_json
28-
from lib.app.exceptions import EmptyOutputError
2928
from lib.app.helpers import extract_project_folder
3029
from lib.app.helpers import get_annotation_paths
3130
from lib.app.helpers import reformat_metrics_json
@@ -41,7 +40,6 @@
4140
from lib.app.serializers import TeamSerializer
4241
from lib.core.enums import ImageQuality
4342
from lib.core.exceptions import AppException
44-
from lib.core.exceptions import AppValidationException
4543
from lib.core.types import ClassesJson
4644
from lib.infrastructure.controller import Controller
4745
from 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
32933292
def search_models(
32943293
name: Optional[NotEmptyStr] = None,

src/superannotate/lib/core/usecases.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff 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
"_"

0 commit comments

Comments
 (0)