aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-12-20 23:52:53 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-12-20 23:52:53 +0100
commit0c52671b6a01b70197488adaef3657b400876d15 (patch)
tree4a42e350e3ae42a388d6fb9a4844b36bef26ded9 /source
parentOptimization of the regular expression used by clear_string in utils.py. (diff)
downloadnewspipe-0c52671b6a01b70197488adaef3657b400876d15.tar.gz
newspipe-0c52671b6a01b70197488adaef3657b400876d15.tar.bz2
newspipe-0c52671b6a01b70197488adaef3657b400876d15.zip
Improvements in the search.html template.
Diffstat (limited to 'source')
-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