def user(username: str) -> render_template: """ Description ----------- This functions takes a user to their personal page after having logged in Params ------ :username: str The username for a given user on the site. Return ------ Returns a rendered Jinja2 HTML template served over the flask application under the `/user/<username>' path, depending on the username """ scores = Score.get_user_best_scores(username=current_user.username) stats = Score.get_user_stats(username=current_user.username) return render_template('user.html', header="Welcome!", user=current_user, scores=scores, stats=stats, footer="Thanks for logging in <3")