From ea8b656711cfd75a35c78158b9ee0d1525ff96a6 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 10 Jan 2018 15:51:32 +1300 Subject: [PATCH] views: fix unknown categories comparison stats graph to include "Not available" Packages with the "Not available" status were inexplicably excluded from the graph, include them. Signed-off-by: Paul Eggleton --- layerindex/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/views.py b/layerindex/views.py index f3a44ad..554fbf6 100644 --- a/layerindex/views.py +++ b/layerindex/views.py @@ -1067,7 +1067,7 @@ class ClassicRecipeStatsView(TemplateView): categories.append(cat) categories.append('none') catcounts = dict.fromkeys(categories, 0) - unmigrated = recipes.filter(cover_status='U') + unmigrated = recipes.filter(cover_status__in=['U', 'N']) catcounts['none'] = unmigrated.filter(classic_category='').count() values = unmigrated.exclude(classic_category='').values_list('classic_category', flat=True) # We gather data this way because an item might be in more than one category, thus