summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-22 21:01:16 -0700
committereliott <eliott@cactuswax.net>2008-03-22 21:01:16 -0700
commitce564d73a6758e6ce8e15f39e47ea67910274a7d (patch)
tree9e507656074df007e5adb8c86bd3c293b26b5241 /packages
parentf41fc770e4151f7556011afcb990095f98d5b879 (diff)
Added the ability to see flagged packages only, per use or repo
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/views.py b/packages/views.py
index 0b19235c..39566717 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -60,6 +60,7 @@ def search(request, query=''):
skip = int(request.GET.get('skip', '0'))
sort = request.GET.get('sort', '')
maint = request.GET.get('maint', 'all')
+ flagged_only = request.GET.get('flagged_only', 'n')
# build the form lists
repos = Package.REPOS
@@ -94,6 +95,8 @@ def search(request, query=''):
results = results.filter(arch=Package.ARCHES[arch])
if maint != 'all':
results = results.filter(maintainer=maint)
+ if flagged_only != 'n':
+ results = results.filter(needupdate=1)
if lastupdate:
results = results.filter(
last_update__gte=datetime(