X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=search-tags.py;h=fe006bfd5b69f41d1759baa56b8905ad1da58893;hb=af6063f9b0099f34c8817cd5c63802a160bc0463;hp=8e047e1b400fb46fdd79bb1c0f5652f249091433;hpb=5c8f53a810fb2d55ff9381810dd1427ed7201949;p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git diff --git a/search-tags.py b/search-tags.py index 8e047e1..fe006bf 100755 --- a/search-tags.py +++ b/search-tags.py @@ -38,5 +38,24 @@ else: status = "404 Tag not found" title = "ïÛÉÂËÁ!" body = "ôÅÇ %s ÎÅ ÓÕÝÅÓÔ×ÕÅÔ!" % tag + else: # Process tree + from tags import find_tags + posts = find_tags(tree) + status = None + title = "úÁÐÉÓÉ, ÎÁÊÄÅÎÎÙÅ ÄÌÑ ×ÙÒÁÖÅÎÉÑ " + q + if posts: + _posts = ["""\ +

+

+

+""") + body = ''.join(_posts) + else: + body = "îÅ ÎÁÊÄÅÎÏ ÎÉ ÏÄÎÏÊ ÚÁÐÉÓÉ." response(title, body, status)