summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-29 18:21:10 -0500
committerDan McGee <dan@archlinux.org>2011-04-29 18:21:10 -0500
commite58eb76a1ab4d6f1293b717e21da68f5aa3e5c45 (patch)
tree0c9b6a8f61ecd27bf2f7c6748f5cf23ba1355202 /devel/views.py
parent2d1cfc24232945b2ad2c749cc3b3443a89ee880f (diff)
Change big packages report
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py
index cf24f0d9..a013b329 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -136,8 +136,9 @@ def report(request, report):
cutoff = datetime.now() - timedelta(days=730)
packages = packages.filter(build_date__lt=cutoff).order_by('build_date')
elif report == 'big':
- title = '100 largest compressed packages'
- packages = packages.order_by('-compressed_size')[:100]
+ title = 'Packages with compressed size > 50 MiB'
+ cutoff = 50 * 1024 * 1024
+ packages = packages.filter(compressed_size__gte=cutoff).order_by('-compressed_size')
names = [ 'Compressed Size', 'Installed Size' ]
attrs = [ 'compressed_size', 'installed_size' ]
elif report == 'uncompressed-man':