diff --git a/src/seo/category_proposer.py b/src/seo/category_proposer.py index 66965e4..dfa7f84 100644 --- a/src/seo/category_proposer.py +++ b/src/seo/category_proposer.py @@ -78,7 +78,7 @@ class CategoryProposer: self.api_calls = 0 self.ai_cost = 0.0 self.use_editorial_strategy = use_editorial_strategy - self.fetch_existing_categories = fetch_existing_categories + self.fetch_existing = fetch_existing_categories # Renamed to avoid conflict self.site_analysis = {} self.existing_categories_by_site = {} # Fetched from WordPress self.sites = Config.WORDPRESS_SITES # Add sites config @@ -358,7 +358,7 @@ Return ONLY a JSON array with one object per post.""" logger.info("="*70 + "\n") # Fetch existing categories from WordPress - if self.fetch_existing_categories: + if self.fetch_existing: self.fetch_existing_categories() # Analyze editorial strategy first