Spaces:
Sleeping
Sleeping
nickynicolson
commited on
Commit
·
fd053a1
1
Parent(s):
fab3ed6
Print out artifact details
Browse files- downloadartifact.py +1 -0
downloadartifact.py
CHANGED
@@ -5,6 +5,7 @@ def getArtifactUrl(runUrl):
|
|
5 |
artifactUrl = None
|
6 |
r = requests.get(runUrl)
|
7 |
if r.status_code == 200:
|
|
|
8 |
artifactUrl = r.json()['artifacts'][0]["archive_download_url"]
|
9 |
return artifactUrl
|
10 |
|
|
|
5 |
artifactUrl = None
|
6 |
r = requests.get(runUrl)
|
7 |
if r.status_code == 200:
|
8 |
+
print(r.json()['artifacts'][0])
|
9 |
artifactUrl = r.json()['artifacts'][0]["archive_download_url"]
|
10 |
return artifactUrl
|
11 |
|