refactor-migration again
This commit is contained in:
@@ -228,10 +228,10 @@ class SiteBlueprintViewSet(SiteSectorModelViewSet):
|
||||
).values_list('content_id', flat=True).distinct()
|
||||
cluster_content = content.filter(id__in=cluster_content_ids)
|
||||
|
||||
# Count by role
|
||||
hub_count = cluster_tasks.filter(cluster_role='hub').count()
|
||||
supporting_count = cluster_tasks.filter(cluster_role='supporting').count()
|
||||
attribute_count = cluster_tasks.filter(cluster_role='attribute').count()
|
||||
# Count by structure
|
||||
hub_count = cluster_tasks.filter(content_structure='cluster_hub').count()
|
||||
supporting_count = cluster_tasks.filter(content_structure__in=['article', 'guide', 'comparison']).count()
|
||||
attribute_count = cluster_tasks.filter(content_structure='attribute_archive').count()
|
||||
|
||||
cluster_progress.append({
|
||||
'cluster_id': cluster.id,
|
||||
|
||||
Reference in New Issue
Block a user