aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-11-26 08:03:31 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-11-26 08:03:31 +0100
commitf80c93e697fb3aace14f515ada8bedab2163ffc7 (patch)
tree2ace014e72c8a75af07cea423b8def92a3e61631 /source
parentRenamed 'error_page' function to 'error'. (diff)
downloadnewspipe-f80c93e697fb3aace14f515ada8bedab2163ffc7.tar.gz
newspipe-f80c93e697fb3aace14f515ada8bedab2163ffc7.tar.bz2
newspipe-f80c93e697fb3aace14f515ada8bedab2163ffc7.zip
Minor changes.
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 59f323e9..3f74deba 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -40,9 +40,9 @@ __license__ = "GPLv3"
import os
import re
-import cherrypy
import calendar
+import cherrypy
from mako.template import Template
from mako.lookup import TemplateLookup
lookup = TemplateLookup(directories=['templates'])
@@ -275,7 +275,6 @@ class pyAggr3g470r(object):
nb_favorites = self.mongo.nb_favorites()
nb_articles = self.mongo.nb_articles()
nb_unread_articles = self.mongo.nb_unread_articles()
-
tmpl = lookup.get_template("management.html")
return tmpl.render(feeds=feeds, nb_mail_notifications=nb_mail_notifications, \
nb_favorites=nb_favorites, nb_articles=nb_articles, \
@@ -779,7 +778,7 @@ class pyAggr3g470r(object):
return self.error("Bad URL. This article do not exists.")
description = utils.clear_string(article["article_content"])
if not description:
- description += "Unvailable"
+ description = "Unvailable"
tmpl = lookup.get_template("plain_text.html")
return tmpl.render(feed_title=feed["feed_title"], \
article_title=article["article_title"], \
bgstack15