diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-04-06 07:57:09 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-04-06 07:57:09 +0200 |
commit | bb71e242b67b8bf7baca1ca1c4f47624ffd77738 (patch) | |
tree | a04cde962b2e13fa5b0c80f39eae8447ea6ec121 /src/web/views | |
parent | Removed now useless endpoint. (diff) | |
download | newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.tar.gz newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.tar.bz2 newspipe-bb71e242b67b8bf7baca1ca1c4f47624ffd77738.zip |
Displays if the the instance is running on Heroku.
Diffstat (limited to 'src/web/views')
-rw-r--r-- | src/web/views/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/views/views.py b/src/web/views/views.py index 4dffdf37..0a785ceb 100644 --- a/src/web/views/views.py +++ b/src/web/views/views.py @@ -7,6 +7,7 @@ from flask import (request, render_template, flash, from flask_babel import gettext from sqlalchemy import desc +import conf from web import __version__ from conf import API_ROOT, ADMIN_EMAIL from web.controllers import FeedController, UserController @@ -83,5 +84,6 @@ def about(): def about_more(): return render_template('about_more.html', newspipe_version=__version__.split()[1], + on_heroku=[conf.ON_HEROKU and 'Yes' or 'No'][0], python_version="{}.{}.{}".format(*sys.version_info[:3]), nb_users=UserController().read().count()) |