Skip to content

Commit 9972f13

Browse files
Davit AvagyanDavit Avagyan
authored andcommitted
Fixed hanging issue
1 parent f79e894 commit 9972f13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

superannotate/db/project_images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def upload_image_to_project(
5252
Can be either "compressed" or "original". If None then the default value in project settings will be used.
5353
:type image_quality_in_editor: str
5454
"""
55+
initial_project_inp = project
5556
project, folder = get_project_and_folder_metadata(project)
5657
upload_state = common.upload_state_int_to_str(project.get("upload_state"))
5758
if upload_state == "External":
@@ -129,7 +130,7 @@ def upload_image_to_project(
129130

130131
while True:
131132
try:
132-
get_image_metadata(project, img_name)
133+
get_image_metadata(initial_project_inp, img_name)
133134
except SABaseException:
134135
time.sleep(0.2)
135136
else:

0 commit comments

Comments
 (0)