update zipline script for zipline v4
This commit is contained in:
parent
a8ff1800e6
commit
90436999f4
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ def zipline(
|
|||
|
||||
if response.status_code == 200:
|
||||
response_data = response.json()
|
||||
link = response_data.get("files", [None])[0]
|
||||
# remove '["url"]' to have compatibility with zipline v3
|
||||
link = response_data.get("files", [None])[0]["url"]
|
||||
|
||||
if link:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue