aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/admin.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 11:25:52 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 11:25:52 +0200
commit1575b8a90aa9f099438e2d224f7b34e044d96394 (patch)
tree3ea54771d23a3944d84d16d98ed9986be47a9395 /src/web/views/admin.py
parentBug fix. (diff)
downloadnewspipe-1575b8a90aa9f099438e2d224f7b34e044d96394.tar.gz
newspipe-1575b8a90aa9f099438e2d224f7b34e044d96394.tar.bz2
newspipe-1575b8a90aa9f099438e2d224f7b34e044d96394.zip
Removed the endponint to see stats about a user.
Diffstat (limited to 'src/web/views/admin.py')
-rw-r--r--src/web/views/admin.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/web/views/admin.py b/src/web/views/admin.py
index d8472d9b..34bb0f6c 100644
--- a/src/web/views/admin.py
+++ b/src/web/views/admin.py
@@ -26,25 +26,6 @@ def dashboard():
form=form)
-@admin_bp.route('/user/<int:user_id>', methods=['GET'])
-@login_required
-@admin_permission.require(http_exception=403)
-def user(user_id=None):
- """
- See information about a user (stations, etc.).
- """
- user = UserController().get(id=user_id)
- if user is not None:
- article_contr = ArticleController(user_id)
- return render_template('/admin/user.html', user=user, feeds=user.feeds,
- article_count=article_contr.count_by_feed(),
- unread_article_count=article_contr.count_by_feed(readed=False))
-
- else:
- flash(gettext('This user does not exist.'), 'danger')
- return redirect(redirect_url())
-
-
@admin_bp.route('/user/create', methods=['GET'])
@admin_bp.route('/user/edit/<int:user_id>', methods=['GET'])
@login_required
bgstack15