Skip to content

Commit 7aba53c

Browse files
committed
fix attach_items
1 parent 2b89776 commit 7aba53c

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ minversion = 3.7
33
log_cli=true
44
python_files = test_*.py
55
;pytest_plugins = ['pytest_profiling']
6-
;addopts = -n auto --dist=loadscope
6+
addopts = -n auto --dist=loadscope
77

src/superannotate/__init__.py

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

55

6-
__version__ = "4.4.19b1"
6+
__version__ = "4.4.19b2"
77

88
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
99

src/superannotate/lib/app/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from typing import Union
77

88
import boto3
9+
import numpy as np
910
import pandas as pd
1011
from superannotate.lib.app.exceptions import AppException
1112
from superannotate.lib.core import ATTACHED_VIDEO_ANNOTATION_POSTFIX
@@ -92,6 +93,7 @@ def get_name_url_duplicated_from_csv(csv_path):
9293
image_data["name"] = [str(uuid.uuid4()) for _ in range(len(image_data.index))]
9394

9495
image_data = pd.DataFrame(image_data, columns=["name", "url", "integration"])
96+
image_data = image_data.replace(np.nan, None)
9597
img_names_urls = image_data.to_dict(orient="records")
9698
duplicate_images = []
9799
seen = []

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,9 @@ def attach_items(
26162616
f"The ['{','.join(invalid_integrations)}'] integrations specified for the items doesn't exist in the "
26172617
"list of integrations on the platform. Any associated items will be skipped."
26182618
)
2619+
else:
2620+
_unique_attachments = unique_attachments
2621+
26192622
if _unique_attachments:
26202623
logger.info(
26212624
f"Attaching {len(_unique_attachments)} file(s) to project {project}."

0 commit comments

Comments
 (0)