Skip to content

Commit 34cb8c8

Browse files
authored
Merge pull request #120 from roboflow/upload-annotation-project-name-fix
update annotation upload to reference correct project name
2 parents 82c1df5 + ef4e786 commit 34cb8c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roboflow/core/project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,20 +374,22 @@ def __annotation_upload(self, annotation_path: str, image_id: str):
374374
self.annotation_upload_url = "".join(
375375
[
376376
API_URL + "/dataset/",
377-
self.name,
377+
self.__project_name,
378378
"/annotate/",
379379
image_id,
380380
"?api_key=",
381381
self.__api_key,
382382
"&name=" + os.path.basename(annotation_path),
383383
]
384384
)
385+
385386
# Get annotation response
386387
annotation_response = requests.post(
387388
self.annotation_upload_url,
388389
data=annotation_string,
389390
headers={"Content-Type": "text/plain"},
390391
)
392+
391393
# Return annotation response
392394
return annotation_response
393395

0 commit comments

Comments
 (0)