aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-11-16 08:57:09 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2007-11-16 08:57:09 +0000
commit34e17d3efd52bc9679fef1534c6549d6eb1d7711 (patch)
treea66063586dfb0817ca889723f02cbcc097ca01d6 /web
parentIf the atom has no version, we need to collapse differently. (diff)
downloadpackages-34e17d3efd52bc9679fef1534c6549d6eb1d7711.tar.gz
packages-34e17d3efd52bc9679fef1534c6549d6eb1d7711.tar.bz2
packages-34e17d3efd52bc9679fef1534c6549d6eb1d7711.zip
Different max for limit of left daylist when local_latest is in place.
Diffstat (limited to 'web')
-rw-r--r--web/lib/filters.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/lib/filters.py b/web/lib/filters.py
index 4fa0cb4..ff11af0 100644
--- a/web/lib/filters.py
+++ b/web/lib/filters.py
@@ -15,11 +15,14 @@ def limit_centercount(kwds):
def limit_leftcount(kwds):
leftcount = 2
+ max = 5
+ if 'local_latest' in kwds:
+ max = 90
if 'left_daycount' in kwds:
try:
leftcount = int(kwds['left_daycount'])
- if leftcount > 5 or leftcount < 1:
- leftcount = 5
+ if leftcount > max or leftcount < 1:
+ leftcount = max
except ValueError:
pass
return leftcount