summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/views.py7
-rw-r--r--templates/devel/index.html3
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>