diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 11:25:52 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 11:25:52 +0200 |
commit | 1575b8a90aa9f099438e2d224f7b34e044d96394 (patch) | |
tree | 3ea54771d23a3944d84d16d98ed9986be47a9395 /src/web/views/admin.py | |
parent | Bug fix. (diff) | |
download | newspipe-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.py | 19 |
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 |