fix: auto-fix code issues (cron)
- 修复重复导入/字段 (llm_client.py 中的重复注释) - 修复PEP8格式问题 (E501行长度超过100字符) - 修复多行SQL语句和字符串格式化 - 修复f-string过长问题 涉及文件: - backend/developer_ecosystem_manager.py - backend/document_processor.py - backend/enterprise_manager.py - backend/export_manager.py - backend/growth_manager.py - backend/llm_client.py - backend/localization_manager.py - backend/main.py - backend/neo4j_manager.py - backend/ops_manager.py - backend/performance_manager.py - backend/plugin_manager.py - backend/search_manager.py - backend/security_manager.py - backend/subscription_manager.py - backend/tenant_manager.py - backend/test_phase8_task6.py - backend/test_phase8_task8.py - backend/tingwu_client.py - backend/workflow_manager.py
This commit is contained in:
@@ -1690,7 +1690,8 @@ class OpsManager:
|
||||
INSERT INTO auto_scaling_policies
|
||||
(id, tenant_id, name, resource_type, min_instances, max_instances,
|
||||
target_utilization, scale_up_threshold, scale_down_threshold,
|
||||
scale_up_step, scale_down_step, cooldown_period, is_enabled, created_at, updated_at)
|
||||
scale_up_step, scale_down_step, cooldown_period, is_enabled, created_at,
|
||||
updated_at)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
""",
|
||||
(
|
||||
@@ -2153,7 +2154,8 @@ class OpsManager:
|
||||
"""
|
||||
INSERT INTO failover_configs
|
||||
(id, tenant_id, name, primary_region, secondary_regions, failover_trigger,
|
||||
auto_failover, failover_timeout, health_check_id, is_enabled, created_at, updated_at)
|
||||
auto_failover, failover_timeout, health_check_id, is_enabled, created_at,
|
||||
updated_at)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
""",
|
||||
(
|
||||
@@ -2545,7 +2547,8 @@ class OpsManager:
|
||||
conn.execute(
|
||||
"""
|
||||
INSERT INTO cost_reports
|
||||
(id, tenant_id, report_period, total_cost, currency, breakdown, trends, anomalies, created_at)
|
||||
(id, tenant_id, report_period, total_cost, currency, breakdown,
|
||||
trends, anomalies, created_at)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
""",
|
||||
(
|
||||
@@ -2786,7 +2789,8 @@ class OpsManager:
|
||||
"""
|
||||
INSERT INTO cost_optimization_suggestions
|
||||
(id, tenant_id, category, title, description, potential_savings, currency,
|
||||
confidence, difficulty, implementation_steps, risk_level, is_applied, created_at)
|
||||
confidence, difficulty, implementation_steps, risk_level, is_applied,
|
||||
created_at)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
""",
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user