fix: auto-fix code issues (cron)
- 修复重复导入/字段 - 修复异常处理 - 修复PEP8格式问题 - 添加类型注解
This commit is contained in:
BIN
backend/__pycache__/ai_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/ai_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/api_key_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/api_key_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/collaboration_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/collaboration_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/db_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/db_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/developer_ecosystem_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/developer_ecosystem_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/document_processor.cpython-312.pyc
Normal file
BIN
backend/__pycache__/document_processor.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/enterprise_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/enterprise_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/entity_aligner.cpython-312.pyc
Normal file
BIN
backend/__pycache__/entity_aligner.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/export_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/export_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/growth_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/growth_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/image_processor.cpython-312.pyc
Normal file
BIN
backend/__pycache__/image_processor.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/init_db.cpython-312.pyc
Normal file
BIN
backend/__pycache__/init_db.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/knowledge_reasoner.cpython-312.pyc
Normal file
BIN
backend/__pycache__/knowledge_reasoner.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/llm_client.cpython-312.pyc
Normal file
BIN
backend/__pycache__/llm_client.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/localization_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/localization_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/main.cpython-312.pyc
Normal file
BIN
backend/__pycache__/main.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/multimodal_entity_linker.cpython-312.pyc
Normal file
BIN
backend/__pycache__/multimodal_entity_linker.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/multimodal_processor.cpython-312.pyc
Normal file
BIN
backend/__pycache__/multimodal_processor.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/neo4j_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/neo4j_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/ops_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/ops_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/oss_uploader.cpython-312.pyc
Normal file
BIN
backend/__pycache__/oss_uploader.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/performance_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/performance_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/plugin_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/plugin_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/rate_limiter.cpython-312.pyc
Normal file
BIN
backend/__pycache__/rate_limiter.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/search_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/search_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/security_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/security_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/subscription_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/subscription_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/tenant_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/tenant_manager.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_multimodal.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_multimodal.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase7_task6_8.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase7_task6_8.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase8_task1.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase8_task1.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase8_task2.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase8_task2.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase8_task4.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase8_task4.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase8_task5.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase8_task5.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase8_task6.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase8_task6.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/test_phase8_task8.cpython-312.pyc
Normal file
BIN
backend/__pycache__/test_phase8_task8.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/tingwu_client.cpython-312.pyc
Normal file
BIN
backend/__pycache__/tingwu_client.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backend/__pycache__/workflow_manager.cpython-312.pyc
Normal file
BIN
backend/__pycache__/workflow_manager.cpython-312.pyc
Normal file
Binary file not shown.
@@ -2381,8 +2381,6 @@ async def create_attribute_template_endpoint(
|
||||
if not DB_AVAILABLE:
|
||||
raise HTTPException(status_code=500, detail="Database not available")
|
||||
|
||||
from db_manager import AttributeTemplate
|
||||
|
||||
db = get_db_manager()
|
||||
project = db.get_project(project_id)
|
||||
if not project:
|
||||
@@ -2602,8 +2600,6 @@ async def batch_set_entity_attributes_endpoint(
|
||||
if not DB_AVAILABLE:
|
||||
raise HTTPException(status_code=500, detail="Database not available")
|
||||
|
||||
from db_manager import EntityAttribute
|
||||
|
||||
db = get_db_manager()
|
||||
entity = db.get_entity(entity_id)
|
||||
if not entity:
|
||||
@@ -8667,8 +8663,6 @@ async def get_branding_css(tenant_id: str):
|
||||
manager = get_tenant_manager()
|
||||
css = manager.get_branding_css(tenant_id)
|
||||
|
||||
from fastapi.responses import PlainTextResponse
|
||||
|
||||
return PlainTextResponse(content=css, media_type="text/css")
|
||||
|
||||
|
||||
|
||||
@@ -196,7 +196,6 @@ class SecurityManager:
|
||||
}
|
||||
|
||||
def __init__(self, db_path: str = "insightflow.db"):
|
||||
self.db_path = db_path
|
||||
self.db_path = db_path
|
||||
# 预编译正则缓存
|
||||
self._compiled_patterns: dict[str, re.Pattern] = {}
|
||||
|
||||
Reference in New Issue
Block a user