]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - phd.py
Refactor(phd.py): `ymd` is exactly 3 items
[phdru.name/phdru.name.git] / phd.py
diff --git a/phd.py b/phd.py
index 7954e70bc8c8525338df55dd40e85a16a9b7729c..a68db56e5cb2b4f601bdc84f398ab7ecd93c4cd3 100644 (file)
--- 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 = \