show user donations on his own page
This commit is contained in:
parent
cf4b642461
commit
62e307f6a2
3 changed files with 33 additions and 8 deletions
|
|
@ -19,8 +19,10 @@ def user_page(user_id):
|
|||
if not int(current_user.id) == int(user_id):
|
||||
return redirect(url_for('main.homepage'))
|
||||
user = User.query.filter_by(id=user_id).first()
|
||||
donations = user.get_donations()
|
||||
return render_template('user_page.html',
|
||||
user=user)
|
||||
user=user,
|
||||
donations=donations)
|
||||
|
||||
|
||||
@users.route('/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue