feat(training): 新增精益培训视频与周任务管理

This commit is contained in:
runny committed 2026-09-08 17:10:14 +08:00
1 parent e5ede471fd
commit a69814c409
32 files changed
+1619 -55

No files matched your search

+6 -1
View File
@@ -1,4 +1,4 @@
"""
"""
backend/app/__init__.py
用途:应用工厂:创建 Flask 应用、挂载全局异常与响应处理。
@@ -114,6 +114,11 @@ def create_app(config_name='default'):
ensure_default_contract_payment_schedules()
except Exception as exc: # pragma: no cover - 表未就绪时容忍
logger.warning('Failed to ensure contract-payment schedules: %s', exc)
try:
from app.services.lean_training_schedule_seed import ensure_default_lean_training_schedule
ensure_default_lean_training_schedule()
except Exception as exc: # pragma: no cover - 表未就绪时容忍
logger.warning('Failed to ensure lean-training schedule: %s', exc)
else:
logger.info('Skip startup schedule seeding: schedule_tasks table is not ready')
from app.services.fixed_assets_snapshot import FixedAssetsSnapshotService