diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:29:19 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:29:19 +0100 |
commit | 7a08a6b548e39a477aaf49b6213a2e06a0f3498a (patch) | |
tree | 775895d433100fbbe0efdb6759a2b14e5a999d30 /newspipe/web/views/article.py | |
parent | removed unused variable (diff) | |
download | newspipe-7a08a6b548e39a477aaf49b6213a2e06a0f3498a.tar.gz newspipe-7a08a6b548e39a477aaf49b6213a2e06a0f3498a.tar.bz2 newspipe-7a08a6b548e39a477aaf49b6213a2e06a0f3498a.zip |
cleaned imports
Diffstat (limited to 'newspipe/web/views/article.py')
-rw-r--r-- | newspipe/web/views/article.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/newspipe/web/views/article.py b/newspipe/web/views/article.py index 033ff039..472ff589 100644 --- a/newspipe/web/views/article.py +++ b/newspipe/web/views/article.py @@ -1,23 +1,26 @@ from datetime import datetime, timedelta + from flask import ( Blueprint, - g, - render_template, - redirect, flash, - url_for, + g, make_response, + redirect, + render_template, request, + url_for ) - from flask_babel import gettext -from flask_login import login_required, current_user - +from flask_login import current_user, login_required from newspipe.bootstrap import db -from newspipe.lib.utils import clear_string, redirect_url +from newspipe.controllers import ( + ArticleController, + CategoryController, + UserController +) from newspipe.lib.data import export_json -from newspipe.controllers import ArticleController, UserController, CategoryController +from newspipe.lib.utils import clear_string, redirect_url from newspipe.web.lib.view_utils import etag_match articles_bp = Blueprint("articles", __name__, url_prefix="/articles") |