modify: ip音柱插件

This commit is contained in:
2026-09-04 14:51:12 +08:00
parent 5ab68d6002
commit 5ec90a5575
12 changed files with 256 additions and 6 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ async def board_ping(request: BoardPingRequest, worker_id: str = "") -> dict:
stream_id = media["MediaName"]
source_url = media["MediaUrl"].replace("/Link", link_path)
try:
await stream_manager.start_stream(f"/{stream_id}", source_url)
await stream_manager.start_stream(f"/{stream_id}", source_url) # type: ignore
except Exception as e:
logger.warning(f"[Heartbeat] 通道 {stream_id} 拉流失败: {e}")
+1 -1
View File
@@ -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))