From 8d3a1a1c504a70dd23d36c3ed5be0ebcd2f7a86d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 8 Apr 2012 20:51:12 -0500 Subject: Change old packages report from two years to one year Now that all packages are getting more attention, we can shorten the time period on the report to a shorter date range. Signed-off-by: Dan McGee --- devel/views.py | 4 ++-- templates/devel/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devel/views.py b/devel/views.py index 3ede54a..88e76be 100644 --- a/devel/views.py +++ b/devel/views.py @@ -160,8 +160,8 @@ def report(request, report_name, username=None): type=PackageRelation.MAINTAINER).values('user')) if report_name == 'old': - title = 'Packages last built more than two years ago' - cutoff = utc_now() - timedelta(days=365 * 2) + title = 'Packages last built more than one year ago' + cutoff = utc_now() - timedelta(days=365) packages = packages.filter( build_date__lt=cutoff).order_by('build_date') elif report_name == 'long-out-of-date': diff --git a/templates/devel/index.html b/templates/devel/index.html index 7c26aab..a0ccb91 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -148,7 +148,7 @@

Developer Reports