mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
refactor: 重构服务层方法命名规范
fix: 修复文件下载和删除功能 fix: 修复Redis哈希获取方法返回值类型 fix: 修复权限检查逻辑 perf: 优化部门和服务详情查询性能 perf: 优化角色数据范围显示 style: 清理无用导入和注释 style: 统一CRUD方法命名 docs: 更新main.py中的命令说明 chore: 移动IP定位工具类位置 chore: 更新.gitignore忽略迁移版本文件
This commit is contained in:
@@ -23,7 +23,7 @@ from apscheduler.triggers.interval import IntervalTrigger
|
||||
# from pymongo import MongoClient
|
||||
|
||||
from app.config.setting import settings
|
||||
from app.core.database import engine, session_connect, SessionLocal, AsyncSessionLocal
|
||||
from app.core.database import SessionLocal, AsyncSessionLocal
|
||||
from app.core.exceptions import CustomException
|
||||
from app.core.logger import logger
|
||||
|
||||
@@ -75,7 +75,7 @@ class SchedulerUtil:
|
||||
# 初始化任务状态
|
||||
status = True
|
||||
exception_info = ''
|
||||
if event_type == 'JobExecutionEvent' and event.exception:
|
||||
if isinstance(event, JobExecutionEvent) and event.exception:
|
||||
exception_info = str(event.exception)
|
||||
status = False
|
||||
if hasattr(event, 'job_id'):
|
||||
|
||||
Reference in New Issue
Block a user