123 lines
11 KiB
Python
123 lines
11 KiB
Python
#!/usr/bin/env python3
|
|
import sys
|
|
|
|
# Original block (lines 225-276) as captured
|
|
original = """## Workers (`backend/app/workers/...`)
|
|
|
|
- [ ] `workers/monitor_dashboard.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/monitor_dashboard2.0.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/ocr/robot_1_ocr_processor.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/py_to_database.py` - No docstring or definitions found
|
|
- [ ] `workers/service/service_robot_0_hunter.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/service/service_robot_1_scout_osm.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/service/service_robot_2_researcher.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/service/service_robot_3_enricher.py` - Classes: ServiceEnricher
|
|
- [ ] `workers/service/service_robot_4_validator_google.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/service/service_robot_5_auditor.py` - Classes: ServiceAuditor
|
|
- [ ] `workers/system/subscription_worker.py` - "🤖 Subscription Lifecycle Worker (Robot-20)"
|
|
- [ ] `workers/system/system_robot_2_service_auditor.py` - Classes: ServiceAuditor
|
|
- [ ] `workers/vehicle/R0_brand_hunter.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/R1_model_scout.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/R2_generation_scout.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/R3_engine_scout.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/R4_final_extractor.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/bike/bike_R0_brand_hunter.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/bike/bike_R1_model_scout.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/bike/bike_R2_generation_scout.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/bike/bike_R3_engine_scout.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/bike/bike_R4_final_extractor.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/bike/test_aprilia.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/mapping_dictionary.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/mapping_rules.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/r5_test.py` - No docstring or definitions found
|
|
- [ ] `workers/vehicle/r5_ultimate_harvester.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/robot_report.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r0_spider.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r1_scraper.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r2_enricher.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r3_finalizer.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_data_loader.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_0_discovery_engine.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_0_gb_discovery.py` - Classes: GBDiscoveryEngine
|
|
- [ ] `workers/vehicle/vehicle_robot_1_2_nhtsa_fetcher.py` - Classes: NHTSAFetcher
|
|
- [ ] `workers/vehicle/vehicle_robot_1_4_bike_hunter.py` - Classes: BikeHunter
|
|
- [ ] `workers/vehicle/vehicle_robot_1_5_heavy_eu.py` - Classes: HeavyEUHunter
|
|
- [ ] `workers/vehicle/vehicle_robot_1_5_heavy_eu1.0.py` - Classes: HeavyEUHunter
|
|
- [ ] `workers/vehicle/vehicle_robot_1_catalog_hunter.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_1_gb_hunter.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_2_1_rdw_enricher.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_2_1_ultima_scout.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_2_1_ultima_scout_1.0.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_2_auto_data_net.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_2_researcher.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_3_alchemist_pro.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_4_validator.py` - "Error reading file: 'FunctionDef' object has no attribute 'parent'"
|
|
- [ ] `workers/vehicle/vehicle_robot_4_vin_auditor.py` - Classes: VINAuditor
|
|
"""
|
|
|
|
# New block with tags (generated from fix_classification.py)
|
|
new = """## Workers (`backend/app/workers/...`)
|
|
|
|
- [ ] `workers/monitor_dashboard.py` - [TÖRÖLHETŐ] Older version; monitor_dashboard2.0.py should be kept.
|
|
- [ ] `workers/monitor_dashboard2.0.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/ocr/robot_1_ocr_processor.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/py_to_database.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/service/service_robot_0_hunter.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/service/service_robot_1_scout_osm.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/service/service_robot_2_researcher.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/service/service_robot_3_enricher.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/service/service_robot_4_validator_google.py` - [REFAKTORÁL] Contains hardcoded 'ghost' status; should use ServiceStatus Enum.
|
|
- [ ] `workers/service/service_robot_5_auditor.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/system/subscription_worker.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/system/system_robot_2_service_auditor.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/R0_brand_hunter.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/R1_model_scout.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/R2_generation_scout.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/R3_engine_scout.py` - [REFAKTORÁL] Uses BeautifulSoup for web scraping; consider modernizing to async HTTP client and structured data extraction.
|
|
- [ ] `workers/vehicle/R4_final_extractor.py` - [REFAKTORÁL] Uses BeautifulSoup for web scraping; consider modernizing to async HTTP client and structured data extraction.
|
|
- [ ] `workers/vehicle/bike/bike_R0_brand_hunter.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/bike/bike_R1_model_scout.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/bike/bike_R2_generation_scout.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/bike/bike_R3_engine_scout.py` - [REFAKTORÁL] Uses BeautifulSoup for web scraping; consider modernizing to async HTTP client and structured data extraction.
|
|
- [ ] `workers/vehicle/bike/bike_R4_final_extractor.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/bike/test_aprilia.py` - [TÖRÖLHETŐ] Test file; not needed in production.
|
|
- [ ] `workers/vehicle/mapping_dictionary.py` - [MEGTART] Mapping utility used by rdw_enricher; keep.
|
|
- [ ] `workers/vehicle/mapping_rules.py` - [MEGTART] Mapping utility used by rdw_enricher; keep.
|
|
- [ ] `workers/vehicle/r5_test.py` - [TÖRÖLHETŐ] Test file; not needed in production.
|
|
- [ ] `workers/vehicle/r5_ultimate_harvester.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/robot_report.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r0_spider.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r1_scraper.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r2_enricher.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/ultimatespecs/vehicle_ultimate_r3_finalizer.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_data_loader.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_0_discovery_engine.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_0_gb_discovery.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_1_2_nhtsa_fetcher.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_1_4_bike_hunter.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_1_5_heavy_eu.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_1_5_heavy_eu1.0.py` - [TÖRÖLHETŐ] Duplicate of non-1.0 version; remove to avoid confusion.
|
|
- [ ] `workers/vehicle/vehicle_robot_1_catalog_hunter.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_1_gb_hunter.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_2_1_rdw_enricher.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_2_1_ultima_scout.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_2_1_ultima_scout_1.0.py` - [TÖRÖLHETŐ] Duplicate of non-1.0 version; remove to avoid confusion.
|
|
- [ ] `workers/vehicle/vehicle_robot_2_auto_data_net.py` - [REFAKTORÁL] Uses BeautifulSoup for web scraping; consider modernizing to async HTTP client and structured data extraction.
|
|
- [ ] `workers/vehicle/vehicle_robot_2_researcher.py` - [REFAKTORÁL] Uses BeautifulSoup for web scraping; consider modernizing to async HTTP client and structured data extraction.
|
|
- [ ] `workers/vehicle/vehicle_robot_3_alchemist_pro.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_4_validator.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
- [ ] `workers/vehicle/vehicle_robot_4_vin_auditor.py` - [MEGTART] Modern code, part of active robot pipeline.
|
|
"""
|
|
|
|
# Ensure there is exactly one trailing newline (optional)
|
|
original = original.rstrip('\n')
|
|
new = new.rstrip('\n')
|
|
|
|
# Print diff in required format
|
|
print(f"<<<<<<< SEARCH")
|
|
print(f":start_line:225")
|
|
print(f"-------")
|
|
print(original)
|
|
print(f"=======")
|
|
print(new)
|
|
print(f">>>>>>> REPLACE") |