Skip to content

Commit a16d2ac

Browse files
authored
Apply suggestions from code review
1 parent 9907b20 commit a16d2ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: other/gauss_easter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ def gauss_easter(year: int) -> datetime:
5555

5656

5757
if __name__ == "__main__":
58-
for year in (1994, 2000, 2010, 2021, 2023):
58+
for year in (1994, 2000, 2010, 2021, 2023, 2032, 2100):
5959
tense = "will be" if year > datetime.now(tz=UTC).year else "was"
6060
print(f"Easter in {year} {tense} {gauss_easter(year)}")

Diff for: web_programming/instagram_pic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def download_image(url: str) -> str:
3636
if not image_data:
3737
return f"Failed to download the image from {image_url}."
3838

39-
file_name = f"{datetime.now(tz=UTC):%Y-%m-%d_%H:%M:%S}.jpg"
39+
file_name = f"{datetime.now(tz=None):%Y-%m-%d_%H:%M:%S}.jpg"
4040
with open(file_name, "wb") as out_file:
4141
out_file.write(image_data)
4242
return f"Image downloaded and saved in the file {file_name}"

0 commit comments

Comments
 (0)