Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit d3d7478

Browse files
Update uploader.py
1 parent 223789a commit d3d7478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelpandas/uploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def create_upload_dict(client:labelboxClient, table: pandas.core.frame.DataFrame
8383
else:
8484
project_ids = []
8585
project_id_to_ontology_index = {}
86-
if (project_ids!=[]) and (attachment_index!={}) and (upload_method in ["mal", "import"]): # If we're uploading annotations
86+
if (project_ids!=[]) and (annotation_index!={}) and (upload_method in ["mal", "import"]): # If we're uploading annotations
8787
for projectId in project_ids:
8888
ontology_index = labelbase.ontology.get_ontology_schema_to_name_path(
8989
ontology=client.get_project(projectId).ontology(),

0 commit comments

Comments
 (0)