From 3293b4a39f383ec4caf1fc9ed7a9920eb1403a7c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 11 Jan 2013 21:59:38 +0100 Subject: Removed import of re in search.html. --- source/templates/search.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source') diff --git a/source/templates/search.html b/source/templates/search.html index 1a80bb43..f2e846c0 100644 --- a/source/templates/search.html +++ b/source/templates/search.html @@ -1,7 +1,6 @@ ## search.html <%inherit file="base.html"/> <% -import re import utils %>
@@ -21,7 +20,6 @@ import utils feed = mongo.get_feed(feed_id) print(search_result[feed["feed_id"]].count()) for article in search_result[feed["feed_id"]]: - article_content = utils.clear_string(article["article_content"]) if new_feed_section is True: new_feed_section = False html += """

%s

\n""" % \ @@ -40,6 +38,7 @@ import utils like = "" # descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) description = " ".join(article_content[:500].split(' ')[:-1]) # a description line per article (date, title of the article and -- cgit