aboutsummaryrefslogtreecommitdiff
path: root/source/templates/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'source/templates/search.html')
-rw-r--r--source/templates/search.html8
1 files changed, 2 insertions, 6 deletions
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)
bgstack15