import new kw

This commit is contained in:
IGNY8 VPS (Salman)
2026-02-25 17:26:03 +00:00
parent 264d98f146
commit 35d60247ad
4 changed files with 164 additions and 10 deletions

View File

@@ -155,15 +155,20 @@ class KeywordImporter:
return True
# Create keyword
SeedKeyword.objects.create(
keyword=keyword,
industry=industry,
sector=sector,
volume=volume,
difficulty=difficulty,
country=country,
is_active=True
)
try:
SeedKeyword.objects.create(
keyword=keyword,
industry=industry,
sector=sector,
volume=volume,
difficulty=difficulty,
country=country,
is_active=True
)
except Exception as e:
self.log(f" ⚠ Error creating: {keyword} [{country}]: {e}", force=True)
self.stats['errors'] += 1
return False
self.log(f" ✓ Imported: {keyword} [{country}] (vol:{volume}, diff:{difficulty})")
return True