add json parameter to cataas request to fix it not working

This commit is contained in:
csd4ni3l
2025-12-14 18:26:55 +01:00
parent f1e3cc904d
commit e4d1e18127

2
app.py
View File

@@ -55,7 +55,7 @@ def generate_meow_blocks():
"text": "Meow!" "text": "Meow!"
}, },
"block_id": "image4", "block_id": "image4",
"image_url": requests.get("https://cataas.com/cat/cute/says/Meow").json()["url"], "image_url": requests.get("https://cataas.com/cat/cute/says/Meow?json=true").json()["url"],
"alt_text": ":3" "alt_text": ":3"
} }
] ]