mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 13:04:19 +00:00
Merge branch 'main' of zero.ryg.one:nest/g2-progetto
This commit is contained in:
commit
a6addd5242
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)
|
owner = Repository.query.filter_by(owner_id=user.email)
|
||||||
spectator = Authorization.query.filter_by(email=user.email).join(Repository)
|
spectator = Authorization.query.filter_by(email=user.email).join(Repository)
|
||||||
if request.args.get("onlyActive"):
|
if request.args.get("onlyActive"):
|
||||||
owner = owner.filter_by(isActive=True)
|
owner = owner.filter_by(is_active=True)
|
||||||
spectator = spectator.filter(Repository.is_active)
|
spectator = spectator.filter(Repository.is_active)
|
||||||
elif request.args.get("onlyDead"):
|
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)
|
spectator = spectator.filter(not Repository.is_active)
|
||||||
owner = owner.all()
|
owner = owner.all()
|
||||||
spectator = spectator.all()
|
spectator = spectator.all()
|
||||||
|
|
Loading…
Reference in a new issue