]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/commitdiff
Fix paths
authorOleg Broytman <phd@phdru.name>
Tue, 20 May 2014 06:02:34 +0000 (10:02 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 20 May 2014 06:02:34 +0000 (10:02 +0400)
search-tags.py
tags.py

index afdd6c47823cf0aef61b6429c945758dcca6a349..d1bc93ef697cc40a9593e9a58bb0c39e6e7818a7 100755 (executable)
@@ -46,7 +46,7 @@ else:
         if posts:
             _posts = []
             for suburl, title in posts:
         if posts:
             _posts = []
             for suburl, title in posts:
-                _posts.append('<a href="/Russian/blog/%s">%s</a>' % (suburl, title))
+                _posts.append('<a href="../../../../Russian/blog/%s">%s</a>' % (suburl, title))
             body = "<br>\n".join(_posts)
         else:
             body = "Не найдено ни одной записи."
             body = "<br>\n".join(_posts)
         else:
             body = "Не найдено ни одной записи."
diff --git a/tags.py b/tags.py
index 7bfc95ea28f04ed79e55bc7ead4af1d766a2e8b4..d8a14f497b7e18a76bc96b3df7a9be2a978d4c33 100644 (file)
--- a/tags.py
+++ b/tags.py
@@ -6,7 +6,7 @@ except ImportError:
    import pickle
 
 try:
    import pickle
 
 try:
-   blog_file = open(blog_filename, "rb")
+   blog_file = open('../../../../phdru.name/ru/' + blog_filename, "rb")
 except IOError:
    blog_dict = {}
 else:
 except IOError:
    blog_dict = {}
 else: