summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-12-12 20:24:30 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-12-12 20:24:30 -0500
commitf9ae4f860ccf57e84032d7be9426331a9e06e979 (patch)
treec9d837d7e2750d22ba9049abc7cf3c4125f0c9e4 /devel/views.py
parent6c5c3355a97d35afb7f1eee284966ad0bf8cee3b (diff)
parent206000df736fde75a49c3178a8522d17f30a955e (diff)
Merge tag 'release_2012-04-21'
Migrations, moving code around, random small improvements
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/views.py b/devel/views.py
index 2b003bf7..0b9f8f18 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -22,8 +22,9 @@ from django.views.decorators.cache import never_cache
from django.views.generic.simple import direct_to_template
from django.utils.http import http_date
+from .models import UserProfile
from main.models import Package, PackageDepend, PackageFile, TodolistPkg
-from main.models import Arch, Repo, UserProfile
+from main.models import Arch, Repo
from main.utils import utc_now
from packages.models import PackageRelation
from packages.utils import get_signoff_groups
@@ -160,8 +161,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':