mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
🐛 Fix internal server error on repository list
This commit is contained in:
parent
6af4d57f36
commit
f19571504c
1 changed files with 2 additions and 2 deletions
|
@ -63,10 +63,10 @@ def page_repositories():
|
|||
owner = Repository.query.filter_by(owner_id=user.email)
|
||||
spectator = Authorization.query.filter_by(email=user.email).join(Repository)
|
||||
if request.args.get("onlyActive"):
|
||||
owner = owner.filter_by(isActive=True)
|
||||
owner = owner.filter_by(is_active=True)
|
||||
spectator = spectator.filter(Repository.is_active)
|
||||
elif request.args.get("onlyDead"):
|
||||
owner = owner.filter_by(isActive=False)
|
||||
owner = owner.filter_by(is_active=False)
|
||||
spectator = spectator.filter(not Repository.is_active)
|
||||
owner = owner.all()
|
||||
spectator = spectator.all()
|
||||
|
|
Loading…
Reference in a new issue