diff -r e10510cb0ca1 -r 4308da4c8f58 trac/ticket/query.py
|
a
|
b
|
|
| 286 | 286 | max = self.max |
| 287 | 287 | if self.group: |
| 288 | 288 | max += 1 |
| | 289 | results=results[self.offset : self.offset+max] |
| 289 | 290 | if (self.page > int(ceil(float(self.num_items) / self.max)) and |
| 290 | 291 | self.num_items != 0): |
| 291 | 292 | raise TracError(_('Page %(page)s is beyond the number of ' |
| … |
… |
|
| 629 | 630 | |
| 630 | 631 | results = Paginator(tickets, |
| 631 | 632 | self.page - 1, |
| 632 | | self.max) |
| | 633 | self.max, |
| | 634 | self.num_items) |
| 633 | 635 | |
| 634 | 636 | if req: |
| 635 | 637 | if results.has_next_page: |