Skip to content

Commit ecdd658

Browse files
committed
Fix filename bug
1 parent e01b776 commit ecdd658

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

superannotate/db/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ def upload_images_to_project(
800800
for existing_image in existing_images:
801801
i = -1
802802
for j, img_path in enumerate(img_paths):
803-
if str(img_path).endswith(existing_image):
803+
if Path(img_path).name == existing_image:
804804
i = j
805805
break
806806
if i != -1:

superannotate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.1.0b2"
1+
__version__ = "4.1.0b3"

tests/test_stress_test_image_upload_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from pathlib import Path
44

55
import pytest
6-
76
import superannotate as sa
87

98
PROJECT_NAME = "test stress upload"
@@ -13,6 +12,7 @@
1312
"SA_STRESS_TESTS" not in os.environ,
1413
reason="Requires env variable to be set"
1514
)
15+
@pytest.mark.timeout(3 * 3600)
1616
def test_upload_stress(tmpdir):
1717
tmpdir = Path(tmpdir)
1818

0 commit comments

Comments
 (0)