]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Style(phd.py): Rename `old_blog` -> `blog`
authorOleg Broytman <phd@phdru.name>
Thu, 11 Jun 2020 15:35:46 +0000 (18:35 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 11 Jun 2020 15:35:46 +0000 (18:35 +0300)
phd.py

diff --git a/phd.py b/phd.py
index 6b67c20c900567eb31d9ceb72bf6001ff5b86586..f51df69d8aba61ee1d49b3d856f8c2b9d09114f5 100644 (file)
--- a/phd.py
+++ b/phd.py
@@ -114,9 +114,9 @@ class phd(Template):
 
         prev_key = prev_blog_post = current_key = current_blog_post = \
                 next_key = next_blog_post = None
-        old_blog = load_blog()
-        for key in sorted(old_blog):
-            for blog_post in sorted(old_blog[key]):
+        blog = load_blog()
+        for key in sorted(blog):
+            for blog_post in sorted(blog[key]):
                 if current_blog_post:
                     prev_key, prev_blog_post = current_key, current_blog_post
                 if next_blog_post: