summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/views.py')
-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(