]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - tags.py
Fix paths
[phdru.name/cgi-bin/blog-ru/search-tags.git] / tags.py
diff --git a/tags.py b/tags.py
index 7bfc95ea28f04ed79e55bc7ead4af1d766a2e8b4..e1d5dd11eaa625d321a49cff9bbe0249feaffefc 100644 (file)
--- a/tags.py
+++ b/tags.py
@@ -6,7 +6,7 @@ except ImportError:
    import pickle
 
 try:
-   blog_file = open(blog_filename, "rb")
+   blog_file = open('../../../../phdru.name/ru/' + blog_filename, "rb")
 except IOError:
    blog_dict = {}
 else:
@@ -61,5 +61,5 @@ def find_tags(tree):
                 _posts.append((
                     '/'.join((year, month, day, post[0].replace('.tmpl', '.html'))),
                     post[1]))
-    _posts.sort()
+    _posts.sort(reverse=True)
     return _posts