Skip to content

Commit 2b99507

Browse files
committed
set no cache flag
1 parent c38ac04 commit 2b99507

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roboflow/core/version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ def __check_if_generating(self):
110110
# check Roboflow API to see if this version is still generating
111111

112112
url = (
113-
f"{API_URL}/{self.workspace}/{self.project}/{self.version}/checkGenerating"
113+
f"{API_URL}/{self.workspace}/{self.project}/{self.version}?nocache=true"
114114
)
115115
response = requests.get(url, params={"api_key": self.__api_key})
116116
response.raise_for_status()
117117

118-
if response.json()["progress"] == None:
118+
if response.json()["version"]["progress"] == None:
119119
progress = 0.0
120120
else:
121-
progress = float(response.json()["progress"])
121+
progress = float(response.json()["version"]["progress"])
122122

123-
return response.json()["generating"], progress
123+
return response.json()["version"]["generating"], progress
124124

125125
def __wait_if_generating(self, recurse=False):
126126
# checks if a given version is still in the progress of generating

0 commit comments

Comments
 (0)