Mercurial > kallithea
changeset 2632:5535389f1959 beta
Compressed some assignments and evaluations into a single assignment.
author | H Waldo G <gwaldo@gmail.com> |
---|---|
date | Thu, 19 Jul 2012 11:32:33 -0400 |
parents | f597cfb492f9 |
children | bc272fd65e57 |
files | rhodecode/controllers/changelog.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/changelog.py Wed Jul 18 22:07:46 2012 +0200 +++ b/rhodecode/controllers/changelog.py Thu Jul 19 11:32:33 2012 -0400 @@ -58,8 +58,7 @@ int_size = int(request.params.get('size')) except ValueError: int_size = default - int_size = int_size if int_size <= limit else limit - c.size = int_size + c.size = max(min(int_size, limit), 1) session['changelog_size'] = c.size session.save() else: