diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-13 13:18:28 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-13 13:18:28 -0500 |
commit | 3284b302550dbd255762b8606343288d49402056 (patch) | |
tree | 32f7ad2d55287741f27e636c2d504d333e6cb4ea | |
parent | 01b07b5b07cd152949c9f01fec91408945273583 (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>
-rw-r--r-- | devel/views.py | 7 | ||||
-rw-r--r-- | templates/devel/index.html | 3 |
2 files changed, 9 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 diff --git a/templates/devel/index.html b/templates/devel/index.html index 015ae1b2..eb73ac2d 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -106,6 +106,9 @@ <li><a href="reports/old/">Old</a>: Packages last built more than two years ago (<a href="reports/old/{{ user.username }}/">yours only</a>)</li> + <li><a href="reports/long-out-of-date/">Long Out-of-date</a>: + Packages marked out-of-date more than 90 days ago + (<a href="reports/long-out-of-date/{{ user.username }}/">yours only</a>)</li> <li><a href="reports/uncompressed-man/">Uncompressed Manpages</a>: Self-explanatory (<a href="reports/uncompressed-man/{{ user.username }}/">yours only</a>)</li> |