modify: ip音柱插件
This commit is contained in:
@@ -49,7 +49,7 @@ async def list_alarms(
|
||||
total = count_result.scalar() or 0
|
||||
|
||||
# 分页数据
|
||||
stmt = select(AlarmRecord).order_by(desc(AlarmRecord.created_at))
|
||||
stmt = select(AlarmRecord).order_by(desc(AlarmRecord.created_at)) # type: ignore
|
||||
if conditions:
|
||||
from sqlalchemy import and_
|
||||
stmt = stmt.where(and_(*conditions))
|
||||
|
||||
Reference in New Issue
Block a user