Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
modify pagination to default 1000 items page size
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Feret committed Jul 23, 2020
1 parent be8f133 commit 394a73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rq_mantis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
QueueData = namedtuple('QueueData', ('queue', 'workers', 'running_jobs'))


def get_paginated_jobs(jobs, offset=0, per_page=10):
def get_paginated_jobs(jobs, offset=0, per_page=1000):
return sorted(jobs, key=get_created_at, reverse=True)[offset: offset + per_page]


Expand Down

0 comments on commit 394a73b

Please sign in to comment.