aboutsummaryrefslogtreecommitdiff
path: root/newspipe/web/views/article.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 22:29:19 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 22:29:19 +0100
commit7a08a6b548e39a477aaf49b6213a2e06a0f3498a (patch)
tree775895d433100fbbe0efdb6759a2b14e5a999d30 /newspipe/web/views/article.py
parentremoved unused variable (diff)
downloadnewspipe-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.py21
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")
bgstack15