fix Slack caching image, now it gets the direct URL of the random image

This commit is contained in:
csd4ni3l
2025-12-14 18:24:32 +01:00
parent bc92aaa644
commit f1e3cc904d

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": "https://cataas.com/cat/cute/says/Meow", "image_url": requests.get("https://cataas.com/cat/cute/says/Meow").json()["url"],
"alt_text": ":3" "alt_text": ":3"
} }
] ]