From 26ab8bcabb28214ef607d391aa6c20a1ff61b6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20S=C3=A9chet?= Date: Wed, 13 Apr 2022 11:31:11 +0200 Subject: [PATCH] screenshot: add extension to output file --- frontools/screenshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontools/screenshot.py b/frontools/screenshot.py index 430632d..7f2bada 100644 --- a/frontools/screenshot.py +++ b/frontools/screenshot.py @@ -65,8 +65,8 @@ async def _diff_url( ) -> None: url_slug = get_url_slug(url) - left_filename = output_path / f"{theme_name}_{url_slug}_left" - right_filename = output_path / f"{theme_name}_{url_slug}_right" + left_filename = output_path / f"{theme_name}_{url_slug}_left.png" + right_filename = output_path / f"{theme_name}_{url_slug}_right.png" if left_filename.is_file() and right_filename.is_file() and continue_: return