From c127a1f4bf3fbee9b38be2e41883fa7dbfb6e9ea Mon Sep 17 00:00:00 2001 From: Markil 3 Date: Sat, 2 Aug 2025 14:15:00 -0600 Subject: [PATCH] Puts a minimum date on the existential comics I have solid dates for the first comic and the 9th comic, but not those in between, and the first comic does not follow my algorithm. This change at least gives the first comic the correct date. --- comic_download/existential_comics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comic_download/existential_comics.py b/comic_download/existential_comics.py index 408c066..e51884f 100644 --- a/comic_download/existential_comics.py +++ b/comic_download/existential_comics.py @@ -106,7 +106,7 @@ class ExistentialComicStrip(ComicStrip): self.captions.extend(philosophers.get_text().split("\n")) if final_caption: self.captions.append(final_caption) - self.date = datetime.date(2013, 11, 11) + datetime.timedelta(weeks=self.index - 2) + self.date = max(datetime.date(2013, 11, 11) + datetime.timedelta(weeks=self.index - 2), datetime.date(2013, 11, 12)) if self.date >= datetime.date(2023, 11, 13): self.safe = (self.date - datetime.date(2023, 11, 13)).days