Show More
@@ -58,8 +58,7 class ChangelogController(BaseRepoContro | |||||
58 | int_size = int(request.params.get('size')) |
|
58 | int_size = int(request.params.get('size')) | |
59 | except ValueError: |
|
59 | except ValueError: | |
60 | int_size = default |
|
60 | int_size = default | |
61 | int_size = int_size if int_size <= limit else limit |
|
61 | c.size = max(min(int_size, limit), 1) | |
62 | c.size = int_size |
|
|||
63 | session['changelog_size'] = c.size |
|
62 | session['changelog_size'] = c.size | |
64 | session.save() |
|
63 | session.save() | |
65 | else: |
|
64 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now