Skip to content

Commit

Permalink
Allow up to 500 teams per page in teams list api
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Nov 3, 2023
1 parent 81c4c23 commit d1bfed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CTFd/api/v1/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ def get(self, query_args):
teams = (
Teams.query.filter_by(**query_args)
.filter(*filters)
.paginate(per_page=50, max_per_page=100)
.paginate(per_page=50, max_per_page=500)
)
else:
teams = (
Teams.query.filter_by(hidden=False, banned=False, **query_args)
.filter(*filters)
.paginate(per_page=50, max_per_page=100)
.paginate(per_page=50, max_per_page=500)
)

user_type = get_current_user_type(fallback="user")
Expand Down

0 comments on commit d1bfed7

Please sign in to comment.