Mercurial > kallithea
diff rhodecode/controllers/changelog.py @ 2628:4548912f48c8 beta
fixes issue #502, float division error on setting maxsize of changelog to 0
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 18 Jul 2012 17:59:51 +0200 |
parents | a1e156503afe |
children | 5535389f1959 |
line wrap: on
line diff
--- a/rhodecode/controllers/changelog.py Mon Jul 16 23:47:47 2012 +0200 +++ b/rhodecode/controllers/changelog.py Wed Jul 18 17:59:51 2012 +0200 @@ -64,7 +64,8 @@ session.save() else: c.size = int(session.get('changelog_size', default)) - + # min size must be 1 + c.size = max(c.size, 1) p = int(request.params.get('page', 1)) branch_name = request.params.get('branch', None) try: