aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r--pyaggr3g470r/views/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 06b234cd..fa6bd2a0 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -146,7 +146,8 @@ def inject_feed_form():
Context processors run before the template is rendered and have the
ability to inject new values into the template context.
"""
- return dict(create_feed_form=AddFeedForm())
+ return dict(create_feed_form=AddFeedForm(),
+ on_HEROKU=conf.ON_HEROKU)
#
# Views.
@@ -539,8 +540,8 @@ def management():
nb_articles = articles.count()
nb_unread_articles = articles.filter(Article.readed == False).count()
return render_template('management.html', user=g.user, form=form,
- nb_feeds=nb_feeds, nb_articles=nb_articles, nb_unread_articles=nb_unread_articles,
- not_on_heroku = not conf.ON_HEROKU)
+ nb_feeds=nb_feeds, nb_articles=nb_articles,
+ nb_unread_articles=nb_unread_articles)
@app.route('/history', methods=['GET'])
@app.route('/history/<int:year>', methods=['GET'])
bgstack15