1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 04:54:18 +00:00

Merge branch 'main' of zero.ryg.one:nest/g2-progetto

This commit is contained in:
FlaviaC-uni 2021-05-07 17:23:16 +02:00
commit a6addd5242

View file

@ -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()