X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=search-tags.py;h=fe006bfd5b69f41d1759baa56b8905ad1da58893;hb=86a4cbc3af14651fc51f7a7fe9d0ec706bfc3911;hp=27f14f0865f895f893349651784ff059b9114ba7;hpb=9379ed3a21cf6aaacc9c3d3a2f6349aa22b7d3ee;p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git
diff --git a/search-tags.py b/search-tags.py
index 27f14f0..fe006bf 100755
--- a/search-tags.py
+++ b/search-tags.py
@@ -39,15 +39,22 @@ else:
title = "ïÛÉÂËÁ!"
body = "ôÅÇ %s ÎÅ ÓÕÝÅÓÔ×ÕÅÔ!" % tag
else: # Process tree
- from tags import calc_tree
- posts = calc_tree(tree)
+ from tags import find_tags
+ posts = find_tags(tree)
status = None
title = "úÁÐÉÓÉ, ÎÁÊÄÅÎÎÙÅ ÄÌÑ ×ÙÒÁÖÅÎÉÑ " + q
if posts:
- _posts = []
- for suburl, title in posts:
- _posts.append('%s' % (suburl, title))
- body = "
\n".join(_posts)
+ _posts = ["""\
+
+