Return all supervisors in registration
This commit is contained in:
parent
4c0f7f7707
commit
84f2e235fb
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user