From 0c52671b6a01b70197488adaef3657b400876d15 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 20 Dec 2012 23:52:53 +0100 Subject: Improvements in the search.html template. --- source/templates/search.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/templates/search.html') diff --git a/source/templates/search.html b/source/templates/search.html index e4a4ac9c..01043f0e 100644 --- a/source/templates/search.html +++ b/source/templates/search.html @@ -17,7 +17,7 @@ import utils for article in mongo.get_articles(feed["feed_id"]): article_content = utils.clear_string(article["article_content"]) if not article_content: - utils.clear_string(article["article_title"]) + article_content = utils.clear_string(article["article_title"]) if wordre.findall(article_content) != []: if new_feed_section is True: new_feed_section = False @@ -37,11 +37,7 @@ import utils like = "" # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." + description = " ".join(article_content[:500].split(' ')[:-1]) # a description line per article (date, title of the article and # CSS description tooltips on mouse over) -- cgit