aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-11 21:59:38 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-11 21:59:38 +0100
commit3293b4a39f383ec4caf1fc9ed7a9920eb1403a7c (patch)
treeb3b3a49700b7cdeeea83d1714ccb353bdd0901e7 /source
parentMinor improvements of the /search page. (diff)
downloadnewspipe-3293b4a39f383ec4caf1fc9ed7a9920eb1403a7c.tar.gz
newspipe-3293b4a39f383ec4caf1fc9ed7a9920eb1403a7c.tar.bz2
newspipe-3293b4a39f383ec4caf1fc9ed7a9920eb1403a7c.zip
Removed import of re in search.html.
Diffstat (limited to 'source')
-rw-r--r--source/templates/search.html3
1 files changed, 1 insertions, 2 deletions
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
%>
<div class="left inner">
@@ -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 += """<h2><a href="/articles/%s" rel="noreferrer" target="_blank">%s</a><a href="%s" rel="noreferrer" target="_blank"><img src="%s" width="28" height="28" /></a></h2>\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
bgstack15