From f19571504c6d25c93d41e7397242065c730c840b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Fri, 7 May 2021 16:59:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20internal=20server=20error?= =?UTF-8?q?=20on=20repository=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/backend/nest_backend/routes/repository/repositories.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/backend/nest_backend/routes/repository/repositories.py b/code/backend/nest_backend/routes/repository/repositories.py index 31b0ec3..6e4417d 100644 --- a/code/backend/nest_backend/routes/repository/repositories.py +++ b/code/backend/nest_backend/routes/repository/repositories.py @@ -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()