fix: 修复flake8 lint检查错误
All checks were successful
continuous-integration/drone/push Build is passing

- 删除废弃的 admin_positions_backup.py 备份文件
- 修复 courses.py 缺失的 select 导入
- 修复 coze_gateway.py 异常变量作用域问题
- 修复 scheduler_service.py 无用的 global 声明
- 添加 TYPE_CHECKING 导入解决模型前向引用警告
This commit is contained in:
yuliang_guo
2026-01-31 17:43:39 +08:00
parent 18d6d5aff3
commit 41a2f7944a
6 changed files with 25 additions and 173 deletions

View File

@@ -261,8 +261,6 @@ def start_scheduler():
def stop_scheduler():
"""停止调度器"""
global scheduler
if scheduler and scheduler.running:
scheduler.shutdown()
logger.info("定时任务调度器已停止")