Return all supervisors in registration

This commit is contained in:
adam-skowronek 2022-06-23 00:49:22 +02:00
parent 4c0f7f7707
commit 84f2e235fb

View File

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