Skip to content

Commit a9bd6ff

Browse files
committed
fix the formatted string for the reqd_date so the comics download again
1 parent 99720a9 commit a9bd6ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.vscode
2+
comics

garfield.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def daterange(start, end):
3434
if not os.path.exists(dir):
3535
os.makedirs(dir)
3636

37-
reqd_date = f"{some_date.year:02}{some_date.month:02}{some_date.day:02}"
38-
image_url = f"https://picayune.uclick.com/comics/ga/{some_date.year:04}/ga{reqd_date}.gif"
37+
reqd_date = f"{some_date.year % 100}{some_date.month:02}{some_date.day:02}"
38+
image_url = f"https://picayune.uclick.com/comics/ga/{some_date.year}/ga{reqd_date}.gif"
3939
file_path = f"{dir}/ga{reqd_date}.gif"
4040

4141
if not os.path.exists(file_path):

0 commit comments

Comments
 (0)