diff options
author | Chris Ball <cjb@laptop.org> | 2008-05-30 00:46:34 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2008-05-30 00:46:34 (GMT) |
commit | 810d71c5794b744eeffea6b348216d5233cd002d (patch) | |
tree | ce2c865c28231288a1471e3b3c52645a9f1bbe7e /server.py | |
parent | 392b98b6e621c7ed55c42155dba9bcb5014c1adf (diff) |
Don't return templates in search results.
Diffstat (limited to 'server.py')
-rwxr-xr-x | server.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -544,8 +544,9 @@ class WikiRequestHandler(SimpleHTTPRequestHandler): num_results = wp.wp_search(title.encode('utf8')) for i in xrange(0, num_results): result = unicode(wp.wp_result(i), 'utf8') - self.wfile.write('<li><a href="/wiki/%s">%s</a></li>' % - (result.encode('utf8'), result.encode('utf8'))) + if not result.startswith("Plantilla:"): + self.wfile.write('<li><a href="/wiki/%s">%s</a></li>' % + (result.encode('utf8'), result.encode('utf8'))) self.wfile.write("</ul>") |