update zipline script for zipline v4

This commit is contained in:
cswimr 2025-01-23 14:56:15 -06:00
parent a8ff1800e6
commit 90436999f4
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -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: