Merge "Do not show Library packages in Latest Apps section"

This commit is contained in:
Jenkins 2014-06-12 19:02:53 +00:00 committed by Gerrit Code Review
commit 77e1899e0a
1 changed files with 3 additions and 2 deletions

View File

@ -151,8 +151,9 @@ def clean_latest_apps(request):
except exc.HTTPNotFound:
pass
else:
cleaned_apps.append(app)
cleaned_app_ids.append(app_id)
if app.type == 'Application':
cleaned_apps.append(app)
cleaned_app_ids.append(app_id)
request.session['latest_apps'] = collections.deque(cleaned_app_ids)
return cleaned_apps