From 84f2e235fb04c7bfbd6866c52dbe7fc4b7077383 Mon Sep 17 00:00:00 2001 From: adam-skowronek Date: Thu, 23 Jun 2022 00:49:22 +0200 Subject: [PATCH] Return all supervisors in registration --- backend/app/students/routes/registrations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/app/students/routes/registrations.py b/backend/app/students/routes/registrations.py index f85b93d..dea0621 100644 --- a/backend/app/students/routes/registrations.py +++ b/backend/app/students/routes/registrations.py @@ -24,8 +24,7 @@ def list_available_groups(query: dict) -> dict: if mode is not None: ps_query = ps_query.filter(ProjectSupervisor.mode != 1-mode) - ps_query = ps_query.group_by(ProjectSupervisor.id). \ - having(available_groups > 0) + ps_query = ps_query.group_by(ProjectSupervisor.id) data = paginate_models(page, ps_query, per_page)