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)