From b0f38df26aba3d6455b66aa9bc60920a31e4f7fb Mon Sep 17 00:00:00 2001 From: palewire Date: Wed, 25 Jan 2023 08:39:04 -0800 Subject: [PATCH] Add fullpage images to archive command --- newshomepages/archive.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newshomepages/archive.py b/newshomepages/archive.py index c144132a7a7..f4048e6f0a4 100644 --- a/newshomepages/archive.py +++ b/newshomepages/archive.py @@ -136,6 +136,7 @@ def _get_file_dict(data: typing.Dict, input_dir: Path) -> typing.Dict: # Set the input paths handle = utils.safe_ia_handle(data["handle"]) image_path = input_dir / f"{handle}.jpg" + image_fullpage_path = input_dir / f"{handle}.fullpage.jpg" a11y_path = input_dir / f"{handle}.accessibility.json" hyperlinks_path = input_dir / f"{handle}.hyperlinks.json" lighthouse_path = input_dir / f"{handle}.lighthouse.json" @@ -151,6 +152,8 @@ def _get_file_dict(data: typing.Dict, input_dir: Path) -> typing.Dict: file_dict = {} if image_path.exists(): file_dict[f"{handle}-{now_iso}.jpg"] = image_path + if image_fullpage_path.exists(): + file_dict[f"{handle}-{now_iso}.fullpage.jpg"] = image_fullpage_path if a11y_path.exists(): file_dict[f"{handle}-{now_iso}.accessibility.json"] = a11y_path if hyperlinks_path.exists():