summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-13 13:18:28 -0500
committerDan McGee <dan@archlinux.org>2011-06-13 13:18:28 -0500
commit3284b302550dbd255762b8606343288d49402056 (patch)
tree32f7ad2d55287741f27e636c2d504d333e6cb4ea /devel/views.py
parent01b07b5b07cd152949c9f01fec91408945273583 (diff)
Add a long out-of-date developer report
This shows packages that have been marked out of date for more than 90 days in the repos. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py
index 25ad2ccf..2b8bd43e 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -140,9 +140,14 @@ def report(request, report, username=None):
if report == 'old':
title = 'Packages last built more than two years ago'
- cutoff = datetime.now() - timedelta(days=730)
+ cutoff = datetime.now() - timedelta(days=365 * 2)
packages = packages.filter(
build_date__lt=cutoff).order_by('build_date')
+ elif report == 'long-out-of-date':
+ title = 'Packages marked out-of-date more than 90 days ago'
+ cutoff = datetime.now() - timedelta(days=90)
+ packages = packages.filter(
+ flag_date__lt=cutoff).order_by('flag_date')
elif report == 'big':
title = 'Packages with compressed size > 50 MiB'
cutoff = 50 * 1024 * 1024