web/hdalab/management/commands/query_category_inclusion.py
changeset 216 c4953332bc52
parent 206 7070d3acc3d4
--- a/web/hdalab/management/commands/query_category_inclusion.py	Fri Jul 27 19:46:44 2012 +0200
+++ b/web/hdalab/management/commands/query_category_inclusion.py	Fri Jul 27 20:02:59 2012 +0200
@@ -123,7 +123,7 @@
         
         if cat_list:
             queryset = queryset.filter(label__in=cat_list)
-        elif not options.get('all',False):            
+        elif options.get('all',False):            
             queryset = queryset.annotate(wpc=Count('child_categories')).filter(wpc = 0)                    
         
         queryset = queryset.order_by("label")