mirror of
https://git.sr.ht/~sircmpwn/hub.sr.ht
synced 2024-09-12 21:30:36 +02:00
user profile: fix query error
This commit is contained in:
parent
b5af713dcc
commit
97a05152fc
1 changed files with 2 additions and 2 deletions
|
@ -12,10 +12,10 @@ def summary_GET(username):
|
|||
if not user:
|
||||
abort(404)
|
||||
projects = (Project.query
|
||||
.filter(Project.owner_id == current_user.id)
|
||||
.filter(Project.owner_id == user.id)
|
||||
.order_by(Project.updated.desc()))
|
||||
events = (Event.query
|
||||
.filter(Event.user_id == current_user.id)
|
||||
.filter(Event.user_id == user.id)
|
||||
.order_by(Event.created.desc()))
|
||||
|
||||
if not current_user or current_user.id != user.id:
|
||||
|
|
Loading…
Reference in a new issue