screenshot: add extension to output file

This commit is contained in:
Corentin Sechet 2022-04-13 11:31:11 +02:00
parent 577b2e26e7
commit 26ab8bcabb
1 changed files with 2 additions and 2 deletions

View File

@ -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