Skip to content

Commit 76d0276

Browse files
dshabinVaghinak Basentsyan
authored andcommitted
Update version.py
1 parent dc039a3 commit 76d0276

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

src/superannotate/lib/core/usecases/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def validate_limitations(self):
12831283
)
12841284
if not response.ok:
12851285
raise AppValidationException(response.error)
1286-
to_upload_count = len(self.images_to_upload)
1286+
to_upload_count = len(self.images_to_upload[0])
12871287
if to_upload_count > response.data.folder_limit.remaining_image_count:
12881288
raise AppValidationException(constances.UPLOAD_FOLDER_LIMIT_ERROR_MESSAGE)
12891289
elif to_upload_count > response.data.project_limit.remaining_image_count:

src/superannotate/lib/infrastructure/controller.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ def __init__(self, logger, config_path=constances.CONFIG_FILE_LOCATION):
6565
def init(self, config_path):
6666
self._config_path = config_path
6767
token, main_endpoint = (
68-
self.configs.get_one("token").value,
69-
self.configs.get_one("main_endpoint").value,
68+
self.configs.get_one("token"),
69+
self.configs.get_one("main_endpoint"),
7070
)
71+
if token: token = token.value
72+
if main_endpoint: main_endpoint = main_endpoint.value
7173
if not main_endpoint:
7274
self.configs.insert(ConfigEntity("main_endpoint", constances.BACKEND_URL))
7375
if not token:

src/superannotate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "5.0.0b35"
1+
__version__ = "5.0.0b36"

tests/integration/test_fuse_gen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def vector_classes_json(self):
5555
def pixel_classes_json(self):
5656
return f"{self.pixel_folder_path}/classes/classes.json"
5757

58+
@pytest.mark.flaky(reruns=3)
5859
def test_fuse_image_create_vector(self):
5960
with tempfile.TemporaryDirectory() as temp_dir:
6061
temp_dir = pathlib.Path(temp_dir)
@@ -193,7 +194,7 @@ def test_fuse_image_create_pixel(self):
193194
self.assertEqual(im1_array.dtype, im2_array.dtype)
194195
self.assertTrue(np.array_equal(im1_array, im2_array))
195196

196-
@pytest.mark.flaky(reruns=3)
197+
@pytest.mark.flaky(reruns=4)
197198
def test_fuse_image_create_pixel_with_no_classes(self):
198199
with tempfile.TemporaryDirectory() as temp_dir:
199200
temp_dir = pathlib.Path(temp_dir)

0 commit comments

Comments
 (0)