From d9822d605b9477053420d429033deabd016c8f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Fri, 22 Nov 2024 14:14:20 +0100 Subject: [PATCH] fix: improve readability of thumbnail download logic in item data extraction --- .github/workflows/process_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/process_data.py b/.github/workflows/process_data.py index 243b04c6..de648088 100644 --- a/.github/workflows/process_data.py +++ b/.github/workflows/process_data.py @@ -144,8 +144,8 @@ def infer_display_template(format_value): def extract_item_data(item): """Extracts relevant data from an item and downloads its thumbnail if available.""" - local_image_path = download_thumbnail( - item.get("thumbnail_display_urls", {}).get("large", "") + local_image_path = ( + download_thumbnail(item.get("thumbnail_display_urls", {}).get("large", "")) if item.get("o:is_public", False) else "assets/img/placeholder.svg" )