From: Oleg Broytman Date: Fri, 12 Jun 2020 00:33:50 +0000 (+0300) Subject: Refactor(phd.py): `ymd` is exactly 3 items X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=commitdiff_plain;h=0f441641cea7980190fc22b97bc6779a5e96f1aa;hp=e1630324d6e4e0c83d68f59bc87a222f89874a2e Refactor(phd.py): `ymd` is exactly 3 items --- diff --git a/phd.py b/phd.py index 7954e70..a68db56 100644 --- a/phd.py +++ b/phd.py @@ -111,7 +111,7 @@ class phd(Template): # blog post is ['', 'Russian', 'blog', year, month, day, filename] if len(dirs) != 7: # Not a blog post return None, None, None, None - ymd = tuple(dirs[3:-1]) + ymd = tuple(dirs[3:6]) filename = self._fileBaseName prev_key = prev_blog_post = current_key = current_blog_post = \