Fix naming conflict - fetch_existing vs fetch_existing_categories
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -78,7 +78,7 @@ class CategoryProposer:
|
|||||||
self.api_calls = 0
|
self.api_calls = 0
|
||||||
self.ai_cost = 0.0
|
self.ai_cost = 0.0
|
||||||
self.use_editorial_strategy = use_editorial_strategy
|
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.site_analysis = {}
|
||||||
self.existing_categories_by_site = {} # Fetched from WordPress
|
self.existing_categories_by_site = {} # Fetched from WordPress
|
||||||
self.sites = Config.WORDPRESS_SITES # Add sites config
|
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")
|
logger.info("="*70 + "\n")
|
||||||
|
|
||||||
# Fetch existing categories from WordPress
|
# Fetch existing categories from WordPress
|
||||||
if self.fetch_existing_categories:
|
if self.fetch_existing:
|
||||||
self.fetch_existing_categories()
|
self.fetch_existing_categories()
|
||||||
|
|
||||||
# Analyze editorial strategy first
|
# Analyze editorial strategy first
|
||||||
|
|||||||
Reference in New Issue
Block a user