From c52088f7aeb90a8a477ac5111651ab7f7a14918d Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Mon, 13 May 2024 17:59:50 +0100 Subject: [PATCH] Update website page teaser image path --- app/sources/website.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sources/website.py b/app/sources/website.py index 8158e4e..5de53c3 100644 --- a/app/sources/website.py +++ b/app/sources/website.py @@ -80,7 +80,7 @@ def get_result(self, page: int | None = 1) -> dict: page_details_url = f"{self.api_base_url}{self.api_path}{article.id}" page_details = page_details_api.execute(page_details_url) article.description = page_details["meta"]["search_description"] - article.image = page_details["teaser_image_jpg"] + article.image = page_details["teaser_image"]["image_jpeg"] response.results.append(article) response.count = raw_results["meta"]["total_count"] response.results_per_page = self.results_per_page