功能:area_id 全链路支持 + 截图处理器独立 Redis 连接
- CameraInfo 模型添加 area_id 字段 - SQLite 表增加 area_id 列及迁移 - config_sync 同步 area_id 到本地 - 告警 ext_data 携带 area_id - 截图处理器使用独立 Redis 连接,避免与配置同步阻塞冲突 - get_all_camera_configs 使用 cursor.description 动态获取列名 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -540,6 +540,7 @@ class ConfigSyncManager:
|
||||
camera_name=cam.get("camera_name", ""),
|
||||
enabled=cam.get("enabled", True),
|
||||
location=cam.get("location", ""),
|
||||
area_id=cam.get("area_id"),
|
||||
)
|
||||
count += 1
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user