From 7a08a6b548e39a477aaf49b6213a2e06a0f3498a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 10 Mar 2020 22:29:19 +0100 Subject: cleaned imports --- runserver.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'runserver.py') diff --git a/runserver.py b/runserver.py index 0afdc3ed..603038dc 100755 --- a/runserver.py +++ b/runserver.py @@ -19,9 +19,13 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . import calendar -from newspipe.bootstrap import application + +from flask import g from flask_babel import Babel, format_datetime +# Views +from flask_restful import Api +from newspipe.bootstrap import application babel = Babel(application) @@ -36,9 +40,6 @@ application.jinja_env.filters["datetime"] = format_datetime # inject application in Jinja env application.jinja_env.globals["application"] = application -# Views -from flask_restful import Api -from flask import g with application.app_context(): g.api = Api(application, prefix="/api/v2.0") -- cgit