mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Add redirect to current_user's stats
This commit is contained in:
parent
1f40a5bf8b
commit
6916b0612f
@ -254,6 +254,12 @@ def user_check(username):
|
||||
return redirect(url_for("tasks.check", id=task.id, r=next_url))
|
||||
|
||||
|
||||
@bp.route("/user/stats/")
|
||||
@login_required
|
||||
def statistics_redirect():
|
||||
return redirect(url_for("users.statistics", username=current_user.username))
|
||||
|
||||
|
||||
@bp.route("/users/<username>/stats/")
|
||||
def statistics(username):
|
||||
user = User.query.filter_by(username=username).first()
|
||||
|
Loading…
Reference in New Issue
Block a user