From 0f441641cea7980190fc22b97bc6779a5e96f1aa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 12 Jun 2020 03:33:50 +0300 Subject: [PATCH] Refactor(phd.py): `ymd` is exactly 3 items --- phd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = \ -- 2.39.5