This commit is contained in:
IGNY8 VPS (Salman)
2025-11-29 09:18:17 +00:00
parent 4237c203b4
commit fcfe261bb4
4 changed files with 127 additions and 39 deletions

View File

@@ -42,15 +42,10 @@ for content in content_without_tags:
if content.secondary_keywords and isinstance(content.secondary_keywords, list):
tags_to_add.extend(content.secondary_keywords[:3]) # Limit to 3
# Create category based on content_type and cluster
# Create category based on cluster only
if content.cluster:
categories_to_add.append(content.cluster.name)
# Add content_structure as category
if content.content_structure:
structure_name = content.content_structure.replace('_', ' ').title()
categories_to_add.append(structure_name)
with transaction.atomic():
# Process tags
for tag_name in tags_to_add: