We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99720a9 commit a9bd6ffCopy full SHA for a9bd6ff
.gitignore
@@ -1 +1,2 @@
1
.vscode
2
+comics
garfield.py
@@ -34,8 +34,8 @@ def daterange(start, end):
34
if not os.path.exists(dir):
35
os.makedirs(dir)
36
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"
+ reqd_date = f"{some_date.year % 100}{some_date.month:02}{some_date.day:02}"
+ image_url = f"https://picayune.uclick.com/comics/ga/{some_date.year}/ga{reqd_date}.gif"
39
file_path = f"{dir}/ga{reqd_date}.gif"
40
41
if not os.path.exists(file_path):
0 commit comments