diff options
author | Dan McGee <dan@archlinux.org> | 2012-04-08 20:51:12 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-08 20:51:12 -0500 |
commit | 8d3a1a1c504a70dd23d36c3ed5be0ebcd2f7a86d (patch) | |
tree | 73bfdeddab1e6baa81c3a52c062616648e5ff42a | |
parent | 31f9d3fc0fee8afe3da50e52feaac80fc00f4021 (diff) |
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 <dan@archlinux.org>
-rw-r--r-- | devel/views.py | 4 | ||||
-rw-r--r-- | templates/devel/index.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/devel/views.py b/devel/views.py index 3ede54ab..88e76bea 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 7c26aab7..a0ccb91f 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -148,7 +148,7 @@ <h3>Developer Reports</h3> <ul> <li><a href="reports/old/">Old</a>: - Packages last built more than two years ago + Packages last built more than one year 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 |