metricsa dn backedn fixes
This commit is contained in:
@@ -387,16 +387,17 @@ class AutomationViewSet(viewsets.ViewSet):
|
||||
|
||||
return counts, total
|
||||
|
||||
# Stage 1: Keywords pending clustering (keep previous "pending" semantics but also return status breakdown)
|
||||
# Stage 1: Keywords pending clustering
|
||||
stage_1_counts, stage_1_total = _counts_by_status(
|
||||
Keywords,
|
||||
extra_filter={'disabled': False}
|
||||
)
|
||||
# pending definition used by the UI previously (new & not clustered)
|
||||
# FIXED: Stage 1 pending = all keywords with status='new' (ready for clustering)
|
||||
# This should match the "New" count shown in Keywords metric card
|
||||
# Previously filtered by cluster__isnull=True which caused mismatch
|
||||
stage_1_pending = Keywords.objects.filter(
|
||||
site=site,
|
||||
status='new',
|
||||
cluster__isnull=True,
|
||||
disabled=False
|
||||
).count()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user